Преглед изворни кода

Fix hardcoded reference to material[ 0 ] with currentMaterialSlot

manthrax пре 8 година
родитељ
комит
9add2517b5
1 измењених фајлова са 1 додато и 1 уклоњено
  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;
 			
-			material = material[0]
+			material = material[ currentMaterialSlot ]
 		}
 
 		for ( var property in properties ) {