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(); } }