David Catuhe 5 年之前
父节点
当前提交
aaba3353e1
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/scene.ts

+ 4 - 0
src/scene.ts

@@ -3908,6 +3908,10 @@ export class Scene extends AbstractScene implements IAnimatable {
             return;
         }
 
+        if (this.onReadyObservable.hasObservers() && this._executeWhenReadyTimeoutId === -1) {
+            this._checkIsReady();
+        }
+
         this._frameId++;
 
         // Register components that have been associated lately to the scene.