summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2023-03-25 21:12:47 +0100
committerYuri Sizov <yuris@humnom.net>2023-03-27 17:58:34 +0200
commit65c52087c2f6dbd6f2b0fe213a0fda39be1aeb1c (patch)
tree37c8045577ebad3b933ad69465383db755c5a951 /editor
parentb85cead4b9edb2fe15af9515958ecf02db0cac39 (diff)
Remove disabled plugins from active plugins
(cherry picked from commit 0b8b37c35df7d0341c47d99298b4aa7f18ee60eb)
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_node.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index b1c3c51a9c..51d7efb811 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -3533,6 +3533,10 @@ void EditorNode::remove_editor_plugin(EditorPlugin *p_editor, bool p_config_chan
singleton->editor_plugins_force_input_forwarding->remove_plugin(p_editor);
singleton->remove_child(p_editor);
singleton->editor_data.remove_editor_plugin(p_editor);
+
+ for (KeyValue<ObjectID, HashSet<EditorPlugin *>> &kv : singleton->active_plugins) {
+ kv.value.erase(p_editor);
+ }
}
void EditorNode::_update_addon_config() {