瀏覽代碼

warning fix

Nicolas Cannasse 6 年之前
父節點
當前提交
acad903a0f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hrt/prefab/Light.hx

+ 1 - 1
hrt/prefab/Light.hx

@@ -200,7 +200,7 @@ class Light extends Object3D {
 		var light = Std.downcast(ctx.local3d,h3d.scene.pbr.Light);
 		if( light == null ) {
 			// FWD light
-			var light = Std.instance(ctx.local3d, h3d.scene.Light);
+			var light = Std.downcast(ctx.local3d, h3d.scene.Light);
 			light.color.setColor(color | 0xFF000000);
 		} else {
 			// PBR light