소스 검색

Editor: Clean up.

Mr.doob 8 년 전
부모
커밋
ddc196f392
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      editor/js/Sidebar.Material.js

+ 1 - 3
editor/js/Sidebar.Material.js

@@ -1011,9 +1011,7 @@ Sidebar.Material = function ( editor ) {
 
 			if ( material.length === 0 ) return;
 
-			if( material.length == 0 ) return;
-			
-			material = material[ currentMaterialSlot ]
+			material = material[ currentMaterialSlot ];
 
 		} else {