Parcourir la source

Editor: Fixed lightmap toggle.

tschw il y a 10 ans
Parent
commit
e6eb541507
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      editor/js/Sidebar.Material.js

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

@@ -551,7 +551,7 @@ Sidebar.Material = function ( editor ) {
 
 				if ( objectHasUvs ) {
 
-					material.lightMap = specularMapEnabled ? materialLightMap.getValue() : null;
+					material.lightMap = lightMapEnabled ? materialLightMap.getValue() : null;
 					material.needsUpdate = true;
 
 				} else {