Browse Source

Fix hardcoded reference to material[ 0 ] with currentMaterialSlot

manthrax 8 years ago
parent
commit
9add2517b5
1 changed files with 1 additions and 1 deletions
  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 ) {