-
Notifications
You must be signed in to change notification settings - Fork 68
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
Fix building without tools enabled #281
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR looks really nice, and it's super helpful. I think we just need to find the proper way of fetching the scripts in production, if EditorFileSystem::get_singleton()
is not available, otherwise we will not be able to properly execute the scripted components.
@@ -1352,3 +1357,4 @@ void WorldECSEditorPlugin::make_visible(bool p_visible) { | |||
ecs_editor->set_world_ecs(nullptr); | |||
} | |||
} | |||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick, a new line is missing here, the CI will fail
modules/godot/nodes/ecs_world.cpp
Outdated
@@ -432,6 +432,7 @@ TypedArray<String> WorldECS::get_configuration_warnings() const { | |||
warnings.push_back(TTR("The selected pipeline `") + active_pipeline + TTR("` doesn't exists in this WorldECS.")); | |||
} | |||
|
|||
#ifdef TOOLS_ENABLED |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if wrap the entire function with ifdef
would make more sense instead, what do you think?
After some more thinking I think many errors would already be gone if the files in the |
@AndreaCatania What exactly would the problem be with scripted components? |
I think that would make a lot of sense doing that TBH.
At startup the scripted component need to be fetched, and registered to godex to be used. It uses the function |
I see, okay. |
It looks nice now, the only issue is find an alternative way of fetching the scripts in production. I think it's enough see how GDScript handle that, since it should work in the same way. I'll try to look into that, and ask to the godot team, feel free to do it too. |
Remove VisualScript checking, as it was discontinued
Handle WorldECSEditorPlugin::edit being called with nullptr Move adding Components3DGizmoPlugin to _editor_init Reset default properties when destructing ScriptEcs
Remove explicit -j option and let the godot build system automatically find the best
b89d2b7
to
b4613ab
Compare
b4613ab
to
838c0b6
Compare
@AndreaCatania This should fix the problem with not being able to use EditorFileSystem. I also based it on the changes in #304 , so you might want to check that first. |
39e8f43
to
dc730aa
Compare
dc730aa
to
084e838
Compare
Disable code that references editor specific things when TOOLS_ENABLED is not defined.
This allows building of export templates.