瀏覽代碼

better comment

Lewy Blue 7 年之前
父節點
當前提交
3df679e65c
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      examples/js/loaders/FBXLoader.js

+ 2 - 3
examples/js/loaders/FBXLoader.js

@@ -3698,10 +3698,10 @@
 			scl: bone.scale.toArray()
 			scl: bone.scale.toArray()
 		};
 		};
 
 
-		euler.setFromQuaternion( bone.quaternion, 'ZYX', false );
-
 		if ( animationNode === undefined ) return key;
 		if ( animationNode === undefined ) return key;
 
 
+		euler.setFromQuaternion( bone.quaternion, 'ZYX', false );
+
 		try {
 		try {
 
 
 			if ( hasCurve( animationNode, 'T' ) && hasKeyOnFrame( animationNode.T, frame ) ) {
 			if ( hasCurve( animationNode, 'T' ) && hasKeyOnFrame( animationNode.T, frame ) ) {
@@ -3713,7 +3713,6 @@
 			if ( hasCurve( animationNode, 'R' ) && hasKeyOnFrame( animationNode.R, frame ) ) {
 			if ( hasCurve( animationNode, 'R' ) && hasKeyOnFrame( animationNode.R, frame ) ) {
 
 
 				// Only update the euler's values if rotation is defined for the axis on this frame
 				// Only update the euler's values if rotation is defined for the axis on this frame
-				// otherwise stay with the previous value
 				if ( animationNode.R.curves.x.values[ frame ] ) {
 				if ( animationNode.R.curves.x.values[ frame ] ) {
 
 
 					euler.x = animationNode.R.curves.x.values[ frame ];
 					euler.x = animationNode.R.curves.x.values[ frame ];