Browse Source

Cleanup commented code and check

Luis Fraguada 4 years ago
parent
commit
c4cca9d075
1 changed files with 1 additions and 10 deletions
  1. 1 10
      examples/jsm/loaders/3DMLoader.js

+ 1 - 10
examples/jsm/loaders/3DMLoader.js

@@ -845,16 +845,7 @@ Rhino3dmLoader.Rhino3dmWorker = function () {
 
 			_object.delete();
 
-			if ( object !== undefined ) {
-
-				/*
-				if ( object.attributes.materialIndex >= 0 ) {
-
-					var mId = doc.materials().findIndex( object.attributes.materialIndex ).id;
-					object.attributes.materialUUID = mId;
-
-				}
-				*/
+			if ( object ) {
 
 				objects.push( object );