Skip to content

Commit db763ae

Browse files
committed
Enable EditorPlugin added by modules and GDExtensions
1 parent b2f425f commit db763ae

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
@@ -3492,6 +3492,7 @@ void EditorNode::add_extension_editor_plugin(const StringName &p_class_name) {
34923492
EditorPlugin *plugin = Object::cast_to<EditorPlugin>(ClassDB::instantiate(p_class_name));
34933493
singleton->editor_data.add_extension_editor_plugin(p_class_name, plugin);
34943494
add_editor_plugin(plugin);
3495+
plugin->enable_plugin();
34953496
}
34963497

34973498
void EditorNode::remove_extension_editor_plugin(const StringName &p_class_name) {
@@ -7217,7 +7218,9 @@ EditorNode::EditorNode() {
72177218
add_editor_plugin(memnew(AudioBusesEditorPlugin(audio_bus_editor)));
72187219

72197220
for (int i = 0; i < EditorPlugins::get_plugin_count(); i++) {
7220-
add_editor_plugin(EditorPlugins::create(i));
7221+
EditorPlugin *plugin = EditorPlugins::create(i);
7222+
add_editor_plugin(plugin);
7223+
plugin->enable_plugin();
72217224
}
72227225

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

0 commit comments

Comments
 (0)