Skip to content

Commit 85bab9a

Browse files
committed
Fix game speed UI not resetting when game is restarted
_reset_time_scales() has a visibility guard that was originally needed to prevent resets on session start. After 4e06e30 scoped the call to only run when all sessions end, the guard is unnecessary and prevents the speed state from being properly reset. Fixes #115400.
1 parent ad4c2c3 commit 85bab9a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

editor/run/game_view_plugin.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -676,9 +676,6 @@ void GameView::_embed_options_menu_menu_id_pressed(int p_id) {
676676
}
677677

678678
void GameView::_reset_time_scales() {
679-
if (!is_visible_in_tree()) {
680-
return;
681-
}
682679
time_scale_index = DEFAULT_TIME_SCALE_INDEX;
683680
debugger->reset_time_scale();
684681
_update_speed_buttons();

0 commit comments

Comments
 (0)