Skip to content

Commit

Permalink
Merge pull request #91930 from godotengine/revert-90608-editor/enable…
Browse files Browse the repository at this point in the history
…-plugin-after-adding

Revert "Enable `EditorPlugin` added by modules and GDExtensions"
  • Loading branch information
akien-mga authored May 15, 2024
2 parents ce00392 + a8e9dfd commit 9f4dbc6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions editor/editor_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3533,7 +3533,6 @@ 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) {
Expand Down Expand Up @@ -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()) {
Expand Down

0 comments on commit 9f4dbc6

Please sign in to comment.