浏览代码

Editor: Fixed lightmap toggle.

tschw 10 年之前
父节点
当前提交
e6eb541507
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 {