Browse Source

Fix a few formatting mistakes

Luis Fraguada 4 years ago
parent
commit
5439049672
2 changed files with 3 additions and 5 deletions
  1. 2 4
      examples/jsm/loaders/3DMLoader.js
  2. 1 1
      examples/webgl_loader_3dm.html

+ 2 - 4
examples/jsm/loaders/3DMLoader.js

@@ -325,7 +325,6 @@ Rhino3dmLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 
 
 					if ( attributes.materialIndex >= 0 ) {
 					if ( attributes.materialIndex >= 0 ) {
 
 
-						// var rMaterial = materials.find( m => m.id === attributes.materialUUID );
 						var rMaterial = materials[ attributes.materialIndex ];
 						var rMaterial = materials[ attributes.materialIndex ];
 						var material = this._createMaterial( rMaterial );
 						var material = this._createMaterial( rMaterial );
 						material = this._compareMaterials( material );
 						material = this._compareMaterials( material );
@@ -419,7 +418,6 @@ Rhino3dmLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 		}
 		}
 
 
 		object.userData[ 'materials' ] = this.materials;
 		object.userData[ 'materials' ] = this.materials;
-		// this.materials = [];
 		return object;
 		return object;
 
 
 	},
 	},
@@ -469,7 +467,7 @@ Rhino3dmLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 			case 'SubD':
 			case 'SubD':
 			case 'Brep':
 			case 'Brep':
 
 
-			if ( obj.geometry === null ) return;
+				if ( obj.geometry === null ) return;
 
 
 				var geometry = loader.parse( obj.geometry );
 				var geometry = loader.parse( obj.geometry );
 
 
@@ -1170,7 +1168,7 @@ Rhino3dmLoader.Rhino3dmWorker = function () {
 
 
 				}
 				}
 
 
-				if ( mesh.faces().count > 0) {
+				if ( mesh.faces().count > 0 ) {
 
 
 					mesh.compact();
 					mesh.compact();
 					geometry = mesh.toThreejsJSON();
 					geometry = mesh.toThreejsJSON();

+ 1 - 1
examples/webgl_loader_3dm.html

@@ -74,7 +74,7 @@
 					initGUI( object.userData.layers );
 					initGUI( object.userData.layers );
 
 
 					// hide spinner
 					// hide spinner
-					document.getElementById('loader').style.display = 'none';
+					document.getElementById( 'loader' ).style.display = 'none';
 
 
 				} );
 				} );