Gary Hsu vor 7 Jahren
Ursprung
Commit
d85cdf7afb
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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 => {