瀏覽代碼

Editor: Fix const assignment. (#22225)

Michael Herzog 4 年之前
父節點
當前提交
9b1faf830f
共有 1 個文件被更改,包括 0 次插入4 次删除
  1. 0 4
      editor/js/Sidebar.Material.js

+ 0 - 4
editor/js/Sidebar.Material.js

@@ -378,10 +378,6 @@ function SidebarMaterial( editor ) {
 
 			materialSlotRow.setDisplay( '' );
 
-			if ( material.length === 0 ) return;
-
-			material = material[ currentMaterialSlot ];
-
 		} else {
 
 			materialSlotRow.setDisplay( 'none' );