summaryrefslogtreecommitdiffstats
path: root/editor/editor_node.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-05-15 22:41:45 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-05-15 22:41:45 +0200
commit2749645d2a7173308228aa5fb0793a260fab733f (patch)
tree08ea1bbb2cde3d8768c4c59f88fd1db18f2916e1 /editor/editor_node.cpp
parentce00392fc35ce639752c710094d87a4311985fb2 (diff)
parentaf6a4f300e7abafebb65f0ffafac5f4ff19f85dc (diff)
downloadredot-engine-2749645d2a7173308228aa5fb0793a260fab733f.tar.gz
Merge pull request #86447 from Maran23/performance-create-new-dialog
Improve performance of the 'Create New Node' dialog
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r--editor/editor_node.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index 26110fbe51..68fcc613ee 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -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()) {