1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-15 13:51:40 +00:00

Fix crash after disabling plugin using set_force_draw_over_forwarding_enabled()

(cherry picked from commit 5a8314016a)
This commit is contained in:
kleonc
2021-05-17 10:46:59 +02:00
committed by Rémi Verschelde
parent 5445d04fbe
commit 628265be44

View File

@@ -3202,10 +3202,11 @@ void EditorNode::remove_editor_plugin(EditorPlugin *p_editor, bool p_config_chan
p_editor->clear();
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() {