Merge pull request #85184 from RandomShaper/switch_scene_better

Let scene replacement benefit from certain late pieces of frame logic
This commit is contained in:
Rémi Verschelde 2023-11-22 10:48:14 +01:00
commit fafc5c2e56
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -515,6 +515,10 @@ bool SceneTree::process(double p_time) {
_flush_delete_queue();
if (unlikely(pending_new_scene)) {
_flush_scene_change();
}
process_timers(p_time, false); //go through timers
process_tweens(p_time, false);
@ -550,10 +554,6 @@ bool SceneTree::process(double p_time) {
#endif // _3D_DISABLED
#endif // TOOLS_ENABLED
if (unlikely(pending_new_scene)) {
_flush_scene_change();
}
return _quit;
}