소스 검색

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