浏览代码

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 {