Explorar o código

Fix hardcoded reference to material[ 0 ] with currentMaterialSlot

manthrax %!s(int64=8) %!d(string=hai) anos
pai
achega
9add2517b5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      editor/js/Sidebar.Material.js

+ 1 - 1
editor/js/Sidebar.Material.js

@@ -1009,7 +1009,7 @@ Sidebar.Material = function ( editor ) {
 
 
 			if( material.length == 0 ) return;
 			if( material.length == 0 ) return;
 			
 			
-			material = material[0]
+			material = material[ currentMaterialSlot ]
 		}
 		}
 
 
 		for ( var property in properties ) {
 		for ( var property in properties ) {