Explorar o código

Editor: Fixed lightmap toggle.

tschw %!s(int64=10) %!d(string=hai) anos
pai
achega
e6eb541507
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {