From 47c02da58e474516cf641da94f1c8aa48db57ee1 Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Thu, 28 Feb 2019 16:14:27 -0800 Subject: [PATCH] FBXLoader: Return empty animations array by default. --- examples/js/loaders/FBXLoader.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/examples/js/loaders/FBXLoader.js b/examples/js/loaders/FBXLoader.js index c42eaf0107..c7a0f3b440 100644 --- a/examples/js/loaders/FBXLoader.js +++ b/examples/js/loaders/FBXLoader.js @@ -2349,15 +2349,17 @@ THREE.FBXLoader = ( function () { var rawClips = this.parseClips(); - if ( rawClips === undefined ) return; + if ( rawClips !== undefined ) { - for ( var key in rawClips ) { + for ( var key in rawClips ) { - var rawClip = rawClips[ key ]; + var rawClip = rawClips[ key ]; - var clip = this.addClip( rawClip ); + var clip = this.addClip( rawClip ); - animationClips.push( clip ); + animationClips.push( clip ); + + } } -- GitLab