فهرست منبع

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 ) {