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
This commit is contained in:
cpl-s-matsuyama
2025-12-10 10:41:43 +09:00
parent bb92a4c8e2
commit 0baa47bb53

View File

@@ -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();