diff options
author | Raul Santos <raulsntos@gmail.com> | 2024-04-13 06:03:59 +0200 |
---|---|---|
committer | Raul Santos <raulsntos@gmail.com> | 2024-04-13 06:03:59 +0200 |
commit | db763ae16ef18b81c229b1acc22e2131600ae419 (patch) | |
tree | fc459c6ab6360e608b23286114d5656b66249176 | |
parent | b2f425fe680d1ed5d5b5fa9ae289ae93fd294607 (diff) | |
download | redot-engine-db763ae16ef18b81c229b1acc22e2131600ae419.tar.gz |
Enable `EditorPlugin` added by modules and GDExtensions
-rw-r--r-- | editor/editor_node.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 4fb1a86ce2..026b23725f 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -3492,6 +3492,7 @@ void EditorNode::add_extension_editor_plugin(const StringName &p_class_name) { EditorPlugin *plugin = Object::cast_to<EditorPlugin>(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) { @@ -7217,7 +7218,9 @@ EditorNode::EditorNode() { add_editor_plugin(memnew(AudioBusesEditorPlugin(audio_bus_editor))); for (int i = 0; i < EditorPlugins::get_plugin_count(); i++) { - add_editor_plugin(EditorPlugins::create(i)); + EditorPlugin *plugin = EditorPlugins::create(i); + add_editor_plugin(plugin); + plugin->enable_plugin(); } for (const StringName &extension_class_name : GDExtensionEditorPlugins::get_extension_classes()) { |