2
0
Kyle-Larson 8 жил өмнө
parent
commit
83ffd72f16

+ 0 - 19
examples/js/loaders/FBXLoader2.js

@@ -1947,25 +1947,6 @@
 						}
 
 					}
-					if ( curveNode.preRotations !== null && curveNode.attr === 'R' ) {
-
-						var curves = curveNode.curves;
-						var preRotations = new THREE.Euler().setFromVector3( curveNode.preRotations, 'ZYX' );
-						preRotations = new THREE.Quaternion().setFromEuler( preRotations );
-						var frameRotation = new THREE.Euler();
-						var frameRotationQuaternion = new THREE.Quaternion();
-						for ( var frame = 0; frame < curves.x.times.length; ++ frame ) {
-
-							frameRotation.set( curves.x.values[ frame ], curves.y.values[ frame ], curves.z.values[ frame ], 'ZYX' );
-							frameRotationQuaternion.setFromEuler( frameRotation ).normalize().premultiply( preRotations ).normalize();
-							frameRotation.setFromQuaternion( frameRotationQuaternion, 'ZYX' );
-							curves.x.values[ frame ] = frameRotation.x;
-							curves.y.values[ frame ] = frameRotation.y;
-							curves.z.values[ frame ] = frameRotation.z;
-
-						}
-
-					}
 
 				} );