Sfoglia il codice sorgente

remove redundant code

Luis Fraguada 5 anni fa
parent
commit
a532b006a1
1 ha cambiato i file con 0 aggiunte e 6 eliminazioni
  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;