You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-17 14:11:06 +00:00
Fix crash when disabling main screen plugin
(cherry picked from commit 0ec2b7baea)
This commit is contained in:
committed by
Rémi Verschelde
parent
45a5769162
commit
63b5a80088
@@ -3015,6 +3015,10 @@ void EditorNode::remove_editor_plugin(EditorPlugin *p_editor) {
|
||||
|
||||
if (p_editor->get_name()==singleton->main_editor_buttons[i]->get_text()) {
|
||||
|
||||
if (singleton->main_editor_buttons[i]->is_pressed()) {
|
||||
singleton->_editor_select(EDITOR_SCRIPT);
|
||||
}
|
||||
|
||||
memdelete( singleton->main_editor_buttons[i] );
|
||||
singleton->main_editor_buttons.remove(i);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user