Skip to content

Commit 9284410

Browse files
committed
Merge pull request #90608 from raulsntos/editor/enable-plugin-after-adding
Enable `EditorPlugin` added by modules and GDExtensions
2 parents 9122286 + db763ae commit 9284410

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

editor/editor_node.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3516,6 +3516,7 @@ void EditorNode::add_extension_editor_plugin(const StringName &p_class_name) {
35163516
EditorPlugin *plugin = Object::cast_to<EditorPlugin>(ClassDB::instantiate(p_class_name));
35173517
singleton->editor_data.add_extension_editor_plugin(p_class_name, plugin);
35183518
add_editor_plugin(plugin);
3519+
plugin->enable_plugin();
35193520
}
35203521

35213522
void EditorNode::remove_extension_editor_plugin(const StringName &p_class_name) {
@@ -7259,7 +7260,9 @@ EditorNode::EditorNode() {
72597260
add_editor_plugin(memnew(AudioBusesEditorPlugin(audio_bus_editor)));
72607261

72617262
for (int i = 0; i < EditorPlugins::get_plugin_count(); i++) {
7262-
add_editor_plugin(EditorPlugins::create(i));
7263+
EditorPlugin *plugin = EditorPlugins::create(i);
7264+
add_editor_plugin(plugin);
7265+
plugin->enable_plugin();
72637266
}
72647267

72657268
for (const StringName &extension_class_name : GDExtensionEditorPlugins::get_extension_classes()) {

0 commit comments

Comments
 (0)