-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove editor/ dependencies from scene/ files #29730
Comments
Among the files listed above, several of them have an editor dependency for the
Instead of using |
Another chunk is all the classes which access EditorSettings to customize their behavior when used in the editor. In
And in
|
The last chunk is access to
|
Some more comments on some of the cases listed above:
|
Part of godotengine#29730, handles false positives.
Part of godotengine#29730, handles false positives.
Extra cases to add to the list after merging #47872 (see #40347 for more detailed discussions):
godot/scene/2d/skeleton_2d.cpp Lines 192 to 195 in 94c31ba
godot/scene/2d/skeleton_2d.cpp Lines 187 to 191 in 94c31ba
|
Superseded by #53295 (comment) |
Godot version:
3.2 master (f410e7a)
Issue description:
As discussed with @reduz on IRC today (logs from 19:37), core files in
scene/
should not have any dependency on editor code (and thus headers fromeditor/
).Over the years we merged a few changes which add such dependencies, guarded by
#ifdef TOOLS_ENABLED
and runtime checks to make sure they only impact the editor, but they still break the design of each folder/category being independent with a single dependency order: editor -> scene -> servers -> core.List of "core" files with dependencies on editor headers:
(
modules/
,platform/
andmain/
are further up the dependency chain, so they can depend oneditor/
).We should discuss how to remove those depending on the different use cases, and clean this up.
The text was updated successfully, but these errors were encountered: