mirror of
https://github.com/godotengine/godot
synced 2024-09-06 03:03:33 +00:00
Fix crash after disabling plugin using set_force_draw_over_forwarding_enabled()
This commit is contained in:
parent
2be9b5dec4
commit
5a8314016a
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue