Nicolas Cannasse 6 年之前
父节点
当前提交
b1f42978cd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hxd/inspect/SceneProps.hx

+ 1 - 1
hxd/inspect/SceneProps.hx

@@ -85,7 +85,7 @@ class SceneProps {
 			if( fls != null )
 				props.push(PGroup("LightSystem",[
 					PRange("maxLightsPerObject", 0, 10, function() return fls.maxLightsPerObject, function(s) fls.maxLightsPerObject = Std.int(s), 1),
-					PColor("ambientLight", false, function() return fls.ambientLight, function(v) fls.ambientLight = v),
+					PColor("ambientLight", false, function() return fls.ambientLight, function(v) fls.ambientLight.load(v)),
 					PBool("perPixelLighting", function() return fls.perPixelLighting, function(b) fls.perPixelLighting = b),
 				]));