Browse Source

remove redundant code

Luis Fraguada 5 năm trước cách đây
mục cha
commit
a532b006a1
1 tập tin đã thay đổi với 0 bổ sung6 xóa
  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;