소스 검색

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