diff options
author | kobewi <kobewi4e@gmail.com> | 2023-03-25 21:12:47 +0100 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2023-03-25 21:12:47 +0100 |
commit | 0b8b37c35df7d0341c47d99298b4aa7f18ee60eb (patch) | |
tree | a475a45c9faff08b97e78c5731ddb45d6a2010a7 | |
parent | 5922b2149ef30b8628d1d23dd6ec397d07d16ba2 (diff) | |
download | redot-engine-0b8b37c35df7d0341c47d99298b4aa7f18ee60eb.tar.gz |
Remove disabled plugins from active plugins
-rw-r--r-- | editor/editor_node.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 026310a696..94403d6a44 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() { |