Переглянути джерело

FBXLoader: Fixed invalid QuaternionKeyframeTracks.

Mr.doob 1 рік тому
батько
коміт
d26eecd647
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      examples/jsm/loaders/FBXLoader.js

+ 1 - 1
examples/jsm/loaders/FBXLoader.js

@@ -2845,7 +2845,7 @@ class AnimationParser {
 
 
 		const quaternionValues = [];
 		const quaternionValues = [];
 
 
-		if ( ! values || ! times ) return new QuaternionKeyframeTrack( modelName + '.quaternion', [], [] );
+		if ( ! values || ! times ) return new QuaternionKeyframeTrack( modelName + '.quaternion', [ 0 ], [ 0 ] );
 
 
 		for ( let i = 0; i < values.length; i += 3 ) {
 		for ( let i = 0; i < values.length; i += 3 ) {