From a8e9dfdcf20b549a97894ef8dfe2d9f7980a4ee5 Mon Sep 17 00:00:00 2001 From: Raul Santos Date: Tue, 14 May 2024 07:11:34 +0200 Subject: [PATCH] Revert "Enable `EditorPlugin` added by modules and GDExtensions" --- editor/editor_node.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index e8a0b771847..ce99c4e7d84 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -3533,7 +3533,6 @@ void EditorNode::add_extension_editor_plugin(const StringName &p_class_name) { EditorPlugin *plugin = Object::cast_to(ClassDB::instantiate(p_class_name)); singleton->editor_data.add_extension_editor_plugin(p_class_name, plugin); add_editor_plugin(plugin); - plugin->enable_plugin(); } void EditorNode::remove_extension_editor_plugin(const StringName &p_class_name) { @@ -7273,9 +7272,7 @@ EditorNode::EditorNode() { add_editor_plugin(memnew(AudioBusesEditorPlugin(audio_bus_editor))); for (int i = 0; i < EditorPlugins::get_plugin_count(); i++) { - EditorPlugin *plugin = EditorPlugins::create(i); - add_editor_plugin(plugin); - plugin->enable_plugin(); + add_editor_plugin(EditorPlugins::create(i)); } for (const StringName &extension_class_name : GDExtensionEditorPlugins::get_extension_classes()) {