Browse Source

remove redundant code

Luis Fraguada 5 years ago
parent
commit
a532b006a1
1 changed files with 0 additions and 6 deletions
  1. 0 6
      examples/jsm/loaders/3DMLoader.js

+ 0 - 6
examples/jsm/loaders/3DMLoader.js

@@ -272,12 +272,6 @@ Rhino3dmLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 
 					var _object = this._createObject( obj, material );
 
-					if ( ! this.materials.includes( material ) ) {
-
-						this.materials.push( material );
-
-					}
-
 					if ( _object === undefined ) {
 
 						continue;