Fix crash on quit when settings_changed signal is emitted during exit

Add `is_inside_tree()` guard to `GameView::_editor_or_project_settings_changed()`
to prevent accessing invalid state when the signal is emitted during editor shutdown.

Fixes #113829
pull/113830/head
cpl-s-matsuyama 2025-12-10 10:41:43 +07:00
parent bb92a4c8e2
commit 0baa47bb53
1 changed files with 4 additions and 0 deletions

@ -507,6 +507,10 @@ void GameView::_embedded_process_focused() {
}
void GameView::_editor_or_project_settings_changed() {
if (!is_inside_tree()) {
return;
}
// Update the window size and aspect ratio.
_update_embed_window_size();