Przeglądaj źródła

Editor: Fix const assignment. (#22225)

Michael Herzog 4 lat temu
rodzic
commit
9b1faf830f
1 zmienionych plików z 0 dodań i 4 usunięć
  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' );