瀏覽代碼

fixed missing brace

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

+ 6 - 4
examples/js/loaders/FBXLoader.js

@@ -1876,6 +1876,8 @@
 
 
 			model.position.fromArray( modelNode.properties.Lcl_Translation.value );
 			model.position.fromArray( modelNode.properties.Lcl_Translation.value );
 
 
+		}
+
 		if ( 'Lcl_Rotation' in modelNode.properties ) {
 		if ( 'Lcl_Rotation' in modelNode.properties ) {
 
 
 			var rotation = modelNode.properties.Lcl_Rotation.value.map( THREE.Math.degToRad );
 			var rotation = modelNode.properties.Lcl_Rotation.value.map( THREE.Math.degToRad );
@@ -1905,9 +1907,9 @@
 		}
 		}
 
 
 		// rotated pivots - note: rotation must be applied before translation here
 		// rotated pivots - note: rotation must be applied before translation here
-		if ( 'GeometricRotation' in node.properties ) {
+		if ( 'GeometricRotation' in modelNode.properties  ) {
 
 
-			var array = node.properties.GeometricRotation.value.map( THREE.Math.degToRad );
+			var array = modelNode.properties.GeometricRotation.value.map( THREE.Math.degToRad );
 
 
 			model.traverse( function ( child ) {
 			model.traverse( function ( child ) {
 
 
@@ -1924,9 +1926,9 @@
 		}
 		}
 
 
 		// translated pivots
 		// translated pivots
-		if ( 'GeometricTranslation' in node.properties ) {
+		if ( 'GeometricTranslation' in modelNode.properties ) {
 
 
-			var array = node.properties.GeometricTranslation.value;
+			var array = modelNode.properties.GeometricTranslation.value;
 
 
 			model.traverse( function ( child ) {
 			model.traverse( function ( child ) {