diff --git a/library/PolyVoxCore/include/PolyVoxCore/CubicSurfaceExtractorWithNormals.h b/library/PolyVoxCore/include/PolyVoxCore/CubicSurfaceExtractorWithNormals.h index b02517fd..02b8d045 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/CubicSurfaceExtractorWithNormals.h +++ b/library/PolyVoxCore/include/PolyVoxCore/CubicSurfaceExtractorWithNormals.h @@ -34,11 +34,11 @@ namespace PolyVox //FIXME - Make this a member of CubicSurfaceExtractorWithNormals? template - bool defaultIsQuadNeeded(VoxelType from, VoxelType to, float& materialToUse) + bool defaultIsQuadNeeded(VoxelType back, VoxelType front, float& materialToUse) { - if((from > 0) && (to == 0)) + if((back > 0) && (front == 0)) { - materialToUse = static_cast(from); + materialToUse = static_cast(back); return true; } else