Lewy Blue 7 tahun lalu
induk
melakukan
56734d2cea
1 mengubah file dengan 6 tambahan dan 8 penghapusan
  1. 6 8
      examples/js/loaders/FBXLoader.js

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

@@ -328,8 +328,7 @@
 
 			fileName = imageMap.get( children[ 0 ].ID );
 
-		} else if ( relativeFilePath !== undefined && relativeFilePath[ 0 ] !== '/' &&
-			relativeFilePath.match( /^[a-zA-Z]:/ ) === null ) {
+		} else if ( relativeFilePath !== undefined && relativeFilePath[ 0 ] !== '/' && relativeFilePath.match( /^[a-zA-Z]:/ ) === null ) {
 
 			// use textureNode.properties.RelativeFilename
 			// if it exists and it doesn't seem an absolute path
@@ -3894,7 +3893,7 @@
 
 			for ( var i = 0; i < this.vertices.length; ++ i ) {
 
-				this.vertices[ i ].copy( returnVar.vertices[ i ] );
+				 this.vertices[ i ].copy( returnVar.vertices[ i ] );
 
 			}
 
@@ -4037,7 +4036,7 @@
 
 	} );
 
-	function TextParser() { }
+	function TextParser() {}
 
 	Object.assign( TextParser.prototype, {
 
@@ -4466,7 +4465,7 @@
 	// Binary format specification:
 	//   https://code.blender.org/2013/08/fbx-binary-file-format-specification/
 	//   https://wiki.rogiken.org/specifications/file-format/fbx/ (more detail but Japanese)
-	function BinaryParser() { }
+	function BinaryParser() {}
 
 	Object.assign( BinaryParser.prototype, {
 
@@ -4664,8 +4663,7 @@
 					if ( innerPropName.indexOf( 'Lcl ' ) === 0 ) innerPropName = innerPropName.replace( 'Lcl ', 'Lcl_' );
 					if ( innerPropType1.indexOf( 'Lcl ' ) === 0 ) innerPropType1 = innerPropType1.replace( 'Lcl ', 'Lcl_' );
 
-					if ( innerPropType1 === 'ColorRGB' || innerPropType1 === 'Vector' ||
-						innerPropType1 === 'Vector3D' || innerPropType1.indexOf( 'Lcl_' ) === 0 ) {
+					if ( innerPropType1 === 'ColorRGB' || innerPropType1 === 'Vector' || innerPropType1 === 'Vector3D' || innerPropType1.indexOf( 'Lcl_' ) === 0 ) {
 
 						innerPropValue = [
 							node.propertyList[ 4 ],
@@ -5224,7 +5222,7 @@
 	} );
 
 
-	function FBXTree() { }
+	function FBXTree() {}
 
 	Object.assign( FBXTree.prototype, {