You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-18 14:21:41 +00:00
Fix crash when switching main screen from a disabled plugin main screen if code editor is floating.
This commit is contained in:
@@ -3486,6 +3486,10 @@ void EditorNode::remove_editor_plugin(EditorPlugin *p_editor, bool p_config_chan
|
||||
}
|
||||
}
|
||||
|
||||
if (singleton->editor_plugin_screen == p_editor) {
|
||||
singleton->editor_plugin_screen = nullptr;
|
||||
}
|
||||
|
||||
singleton->editor_table.erase(p_editor);
|
||||
}
|
||||
p_editor->make_visible(false);
|
||||
|
||||
Reference in New Issue
Block a user