Merge pull request #91930 from godotengine/revert-90608-editor/enable-plugin-after-adding

Revert "Enable `EditorPlugin` added by modules and GDExtensions"
This commit is contained in:
Rémi Verschelde 2024-05-15 20:21:32 +02:00 committed by GitHub
commit 9f4dbc6456
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 4 deletions

View File

@ -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) {
@ -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()) {