summaryrefslogtreecommitdiff
path: root/editor/editor_node.cpp
diff options
context:
space:
mode:
authorkleonc <9283098+kleonc@users.noreply.github.com>2021-05-17 10:46:59 +0200
committerkleonc <9283098+kleonc@users.noreply.github.com>2021-05-17 11:01:15 +0200
commit5a8314016a7bcb87f840ac5110e18ebb09daefa7 (patch)
tree49bd9d5d2fa1dff14bc6d0eb32355e20d4655137 /editor/editor_node.cpp
parent2be9b5dec49ffb3122f766e1d4c9cd2088fde272 (diff)
Fix crash after disabling plugin using set_force_draw_over_forwarding_enabled()
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r--editor/editor_node.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index 61b17a7247..6e94b6cdc9 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -3093,10 +3093,11 @@ void EditorNode::remove_editor_plugin(EditorPlugin *p_editor, bool p_config_chan
if (p_config_changed) {
p_editor->disable_plugin();
}
- singleton->editor_plugins_over->get_plugins_list().erase(p_editor);
+ singleton->editor_plugins_over->remove_plugin(p_editor);
+ singleton->editor_plugins_force_over->remove_plugin(p_editor);
+ singleton->editor_plugins_force_input_forwarding->remove_plugin(p_editor);
singleton->remove_child(p_editor);
singleton->editor_data.remove_editor_plugin(p_editor);
- singleton->get_editor_plugins_force_input_forwarding()->remove_plugin(p_editor);
}
void EditorNode::_update_addon_config() {