소스 검색

Let scene replacemnent benefit from certain late pieces of frame logic

Pedro J. Estébanez 1 년 전
부모
커밋
8bebabda18
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      scene/main/scene_tree.cpp

+ 4 - 4
scene/main/scene_tree.cpp

@@ -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;
 }