Gary Hsu 7 tahun lalu
induk
melakukan
d85cdf7afb
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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 => {