Skip to content

Commit 6e125df

Browse files
committed
FBXLoader: Return empty animations array by default.
1 parent 673fdc7 commit 6e125df

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

examples/js/loaders/FBXLoader.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2349,15 +2349,17 @@ THREE.FBXLoader = ( function () {
23492349

23502350
var rawClips = this.parseClips();
23512351

2352-
if ( rawClips === undefined ) return;
2352+
if ( rawClips !== undefined ) {
23532353

2354-
for ( var key in rawClips ) {
2354+
for ( var key in rawClips ) {
23552355

2356-
var rawClip = rawClips[ key ];
2356+
var rawClip = rawClips[ key ];
23572357

2358-
var clip = this.addClip( rawClip );
2358+
var clip = this.addClip( rawClip );
23592359

2360-
animationClips.push( clip );
2360+
animationClips.push( clip );
2361+
2362+
}
23612363

23622364
}
23632365

0 commit comments

Comments
 (0)