Ver Fonte

Editor: Clean up.

Mr.doob há 8 anos atrás
pai
commit
ddc196f392
1 ficheiros alterados com 1 adições e 3 exclusões
  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 {