소스 검색

fix haxe 3.x

ncannasse 7 년 전
부모
커밋
91d2bdb916
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      h3d/scene/pbr/VolumetricLightmap.hx

+ 1 - 1
h3d/scene/pbr/VolumetricLightmap.hx

@@ -90,7 +90,7 @@ class VolumetricLightmap extends h3d.scene.Mesh {
 
 	public function generateProbes() {
 		var totalProbeCount : Int = probeCount.x * probeCount.y * probeCount.z ;
-		lightProbes.resize(totalProbeCount);
+		lightProbes = [];
 		lastBakedProbeIndex = -1;
 
 		for(i in 0 ... probeCount.x){