summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2021-11-15 16:08:19 +0100
committerRémi Verschelde <rverschelde@gmail.com>2021-11-15 16:08:19 +0100
commitc24c7cac5752dd4ccf5d183a1e5c0609eea27bb2 (patch)
tree7b0694b54c90c0fb3ad1e2cb23ca077144b29837
parent9c4c72485397096e02ea0f582d6c8b05b1030bfb (diff)
Revert "Load assets before enabling editor plugins"
This reverts commit 1963c63b918cdab81f10d3ab48bbb225c95b9246. Fixes #52968, fixes #52995.
-rw-r--r--editor/editor_node.cpp25
1 files changed, 13 insertions, 12 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index 5dd75034e2..368b7e6ab3 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -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;
}
}