Browse Source

GLTFExporter: Clean up

Mugen87 7 years ago
parent
commit
8a0e72230c
1 changed files with 6 additions and 6 deletions
  1. 6 6
      examples/js/exporters/GLTFExporter.js

+ 6 - 6
examples/js/exporters/GLTFExporter.js

@@ -193,7 +193,7 @@ THREE.GLTFExporter.prototype = {
 			return Math.ceil( bufferSize / 4 ) * 4;
 			return Math.ceil( bufferSize / 4 ) * 4;
 
 
 		}
 		}
-		
+
 		/**
 		/**
 		 * Process a buffer to append to the default one.
 		 * Process a buffer to append to the default one.
 		 * @param  {THREE.BufferAttribute} attribute     Attribute to store
 		 * @param  {THREE.BufferAttribute} attribute     Attribute to store
@@ -222,8 +222,8 @@ THREE.GLTFExporter.prototype = {
 
 
 			// Create a new dataview and dump the attribute's array into it
 			// Create a new dataview and dump the attribute's array into it
 			var byteLength = count * attribute.itemSize * componentSize;
 			var byteLength = count * attribute.itemSize * componentSize;
-			
-			// adjust required size of array buffer with padding 
+
+			// adjust required size of array buffer with padding
 			// to satisfy gltf requirement that the length is divisible by 4
 			// to satisfy gltf requirement that the length is divisible by 4
 			byteLength = getPaddedBufferSize( byteLength );
 			byteLength = getPaddedBufferSize( byteLength );
 
 
@@ -427,7 +427,7 @@ THREE.GLTFExporter.prototype = {
 			}
 			}
 
 
 			var mimeType = map.format === THREE.RGBAFormat ? 'image/png' : 'image/jpeg';
 			var mimeType = map.format === THREE.RGBAFormat ? 'image/png' : 'image/jpeg';
-			var gltfImage = {mimeType: mimeType};
+			var gltfImage = { mimeType: mimeType };
 
 
 			if ( options.embedImages ) {
 			if ( options.embedImages ) {
 
 
@@ -439,7 +439,7 @@ THREE.GLTFExporter.prototype = {
 				if ( map.flipY === true ) {
 				if ( map.flipY === true ) {
 
 
 					ctx.translate( 0, map.image.height );
 					ctx.translate( 0, map.image.height );
-					ctx.scale( 1, -1 );
+					ctx.scale( 1, - 1 );
 
 
 				}
 				}
 
 
@@ -909,7 +909,7 @@ THREE.GLTFExporter.prototype = {
 		 * @param {THREE.Object3D} root
 		 * @param {THREE.Object3D} root
 		 * @return {number}
 		 * @return {number}
 		 */
 		 */
-		function processAnimation ( clip, root ) {
+		function processAnimation( clip, root ) {
 
 
 			if ( ! outputJSON.animations ) {
 			if ( ! outputJSON.animations ) {