Bladeren bron

Small fix

Gary Hsu 7 jaren geleden
bovenliggende
commit
d85cdf7afb
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      loaders/src/glTF/2.0/babylon.glTFLoader.ts

+ 1 - 1
loaders/src/glTF/2.0/babylon.glTFLoader.ts

@@ -1528,7 +1528,7 @@ module BABYLON.GLTF2 {
 
             this._requests.length = 0;
 
-            if (this._gltf.images) {
+            if (this._gltf && this._gltf.images) {
                 for (const image of this._gltf.images) {
                     if (image._objectURL) {
                         image._objectURL.then(value => {