Michael Herzog 4 лет назад
Родитель
Сommit
b55a8ca2cb
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' );