From bc008f36063167c93caa6f9e66efe57dd10bbcc0 Mon Sep 17 00:00:00 2001 From: David Williams Date: Sun, 22 Feb 2009 11:27:59 +0000 Subject: [PATCH] Fixed bug with region position nor being set by surface extractors. --- library/source/PolyVoxCore/SurfaceExtractors.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/source/PolyVoxCore/SurfaceExtractors.cpp b/library/source/PolyVoxCore/SurfaceExtractors.cpp index 2a6b3566..70a588b4 100644 --- a/library/source/PolyVoxCore/SurfaceExtractors.cpp +++ b/library/source/PolyVoxCore/SurfaceExtractors.cpp @@ -28,10 +28,14 @@ namespace PolyVox { extractDecimatedSurfaceImpl(volumeData, uLevel, region, singleMaterialPatch); } + + singleMaterialPatch->m_v3dRegionPosition = region.getLowerCorner(); } void extractReferenceSurface(BlockVolume* volumeData, Region region, IndexedSurfacePatch* singleMaterialPatch) { extractReferenceSurfaceImpl(volumeData, region, singleMaterialPatch); + + singleMaterialPatch->m_v3dRegionPosition = region.getLowerCorner(); } }