Merge pull request #75331 from KoBeWi/remove_removed_plugins

Remove disabled plugins from active plugins
This commit is contained in:
Yuri Sizov 2023-03-27 11:42:33 +02:00 committed by GitHub
commit b57f3c2e67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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->editor_plugins_force_input_forwarding->remove_plugin(p_editor);
singleton->remove_child(p_editor); singleton->remove_child(p_editor);
singleton->editor_data.remove_editor_plugin(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() { void EditorNode::_update_addon_config() {