mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 03:18:37 +08:00
Revert "Load assets before enabling editor plugins"
This reverts commit 1963c63b91
.
Fixes #52968, fixes #52995.
This commit is contained in:
parent
9c4c724853
commit
c24c7cac57
@ -621,6 +621,19 @@ void EditorNode::_notification(int p_what) {
|
||||
} break;
|
||||
|
||||
case NOTIFICATION_READY: {
|
||||
{
|
||||
_initializing_addons = true;
|
||||
Vector<String> addons;
|
||||
if (ProjectSettings::get_singleton()->has_setting("editor_plugins/enabled")) {
|
||||
addons = ProjectSettings::get_singleton()->get("editor_plugins/enabled");
|
||||
}
|
||||
|
||||
for (int i = 0; i < addons.size(); i++) {
|
||||
set_addon_plugin_enabled(addons[i], true);
|
||||
}
|
||||
_initializing_addons = false;
|
||||
}
|
||||
|
||||
RenderingServer::get_singleton()->viewport_set_disable_2d(get_scene_root()->get_viewport_rid(), true);
|
||||
RenderingServer::get_singleton()->viewport_set_disable_environment(get_viewport()->get_viewport_rid(), true);
|
||||
|
||||
@ -994,18 +1007,6 @@ void EditorNode::_sources_changed(bool p_exist) {
|
||||
load_scene(defer_load_scene);
|
||||
defer_load_scene = "";
|
||||
}
|
||||
|
||||
// Only enable addons once resources have been imported
|
||||
_initializing_addons = true;
|
||||
Vector<String> addons;
|
||||
if (ProjectSettings::get_singleton()->has_setting("editor_plugins/enabled")) {
|
||||
addons = ProjectSettings::get_singleton()->get("editor_plugins/enabled");
|
||||
}
|
||||
|
||||
for (int i = 0; i < addons.size(); i++) {
|
||||
set_addon_plugin_enabled(addons[i], true);
|
||||
}
|
||||
_initializing_addons = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user