Browse Source

Animation: Fixed JSON import.

tschw 9 years ago
parent
commit
63880c062b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/animation/KeyframeTrack.js

+ 1 - 1
src/animation/KeyframeTrack.js

@@ -400,7 +400,7 @@ Object.assign( THREE.KeyframeTrack, {
 
 			var times = [], values = [];
 
-			THREE.AnimationUtils.flattenJSON( json, times, values, 'value' );
+			THREE.AnimationUtils.flattenJSON( json[ 'keys' ], times, values, 'value' );
 
 			json[ 'times' ] = times;
 			json[ 'values' ] = values;