Skip to content

Commit

Permalink
Merge pull request #75331 from KoBeWi/remove_removed_plugins
Browse files Browse the repository at this point in the history
Remove disabled plugins from active plugins
  • Loading branch information
YuriSizov authored Mar 27, 2023
2 parents b136677 + 0b8b37c commit b57f3c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions editor/editor_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<ObjectID, HashSet<EditorPlugin *>> &kv : singleton->active_plugins) {
kv.value.erase(p_editor);
}
}

void EditorNode::_update_addon_config() {
Expand Down

0 comments on commit b57f3c2

Please sign in to comment.