Explorar o código

Editor: Clean up.

Mr.doob %!s(int64=8) %!d(string=hai) anos
pai
achega
ddc196f392
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  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 {