Procházet zdrojové kódy

Fix glTF loader progress

Gary Hsu před 7 roky
rodič
revize
b56e7d7423
1 změnil soubory, kde provedl 0 přidání a 3 odebrání
  1. 0 3
      loaders/src/glTF/2.0/babylon.glTFLoader.ts

+ 0 - 3
loaders/src/glTF/2.0/babylon.glTFLoader.ts

@@ -1620,9 +1620,6 @@ module BABYLON.GLTF2 {
             }) as IGLTFLoaderFileRequest;
 
             this._requests.push(request);
-            request.onCompleteObservable.add(() => {
-                this._requests.splice(this._requests.indexOf(request), 1);
-            });
         }
 
         public _tryCatchOnError(handler: () => void): void {