From 65c52087c2f6dbd6f2b0fe213a0fda39be1aeb1c Mon Sep 17 00:00:00 2001 From: kobewi Date: Sat, 25 Mar 2023 21:12:47 +0100 Subject: Remove disabled plugins from active plugins (cherry picked from commit 0b8b37c35df7d0341c47d99298b4aa7f18ee60eb) --- editor/editor_node.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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> &kv : singleton->active_plugins) { + kv.value.erase(p_editor); + } } void EditorNode::_update_addon_config() { -- cgit v1.2.3