Skip to content

Commit

Permalink
Fix multiple scene changes that may cause the current scene to be lost
Browse files Browse the repository at this point in the history
  • Loading branch information
Rindbee committed Dec 7, 2024
1 parent aa8d9b8 commit eb66c12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/main/scene_tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1516,8 +1516,8 @@ void SceneTree::_flush_scene_change() {
prev_scene = nullptr;
}
current_scene = pending_new_scene;
root->add_child(pending_new_scene);
pending_new_scene = nullptr;
root->add_child(current_scene);
// Update display for cursor instantly.
root->update_mouse_cursor_state();
}
Expand Down

0 comments on commit eb66c12

Please sign in to comment.