소스 검색

remove redundant code

Luis Fraguada 5 년 전
부모
커밋
a532b006a1
1개의 변경된 파일0개의 추가작업 그리고 6개의 파일을 삭제
  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;