sebastien 6 years ago
parent
commit
833409e8d9
1 changed files with 4 additions and 0 deletions
  1. 4 0
      loaders/src/glTF/2.0/glTFLoader.ts

+ 4 - 0
loaders/src/glTF/2.0/glTFLoader.ts

@@ -1037,6 +1037,10 @@ export class GLTFLoaderV2 implements IGLTFLoader {
     }
 
     private _loadAnimationChannelAsync(context: string, animationContext: string, animation: IAnimationV2, channel: IAnimationChannelV2, babylonAnimationGroup: AnimationGroup): Promise<void> {
+        if (channel.target.node == undefined) {
+            return Promise.resolve();
+        }
+
         const targetNode = ArrayItem.Get(`${context}/target/node`, this.gltf.nodes, channel.target.node);
 
         // Ignore animations that have no animation targets.