diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 3df06ef34a9..e296c01f5bd 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -3534,6 +3534,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() {