From b12bd1ebe2200b67b09c2fe49caf089ad481b267 Mon Sep 17 00:00:00 2001 From: David Williams Date: Tue, 17 Jun 2008 19:05:02 +0000 Subject: [PATCH] Removed accidentally hard coded value; --- PolyVoxCore/source/SurfaceExtractorsDecimated.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PolyVoxCore/source/SurfaceExtractorsDecimated.cpp b/PolyVoxCore/source/SurfaceExtractorsDecimated.cpp index 54b58d16..8da004c0 100644 --- a/PolyVoxCore/source/SurfaceExtractorsDecimated.cpp +++ b/PolyVoxCore/source/SurfaceExtractorsDecimated.cpp @@ -144,7 +144,7 @@ namespace PolyVox volIter.setPosition(x,y+uStepSize,regSlice.getLowerCorner().getZ()+uStepSize); const uint8_t v011 = volIter.getMaxedVoxel(uLevel); volIter.setPosition(x+uStepSize,y+uStepSize,regSlice.getLowerCorner().getZ()+uStepSize); - const uint8_t v111 = volIter.getMaxedVoxel(1); + const uint8_t v111 = volIter.getMaxedVoxel(uLevel); if (v000 == 0) iCubeIndex |= 1; if (v100 == 0) iCubeIndex |= 2;