From b57cec96a333ae70ebbf848da9f8d8dbfa724ea8 Mon Sep 17 00:00:00 2001 From: Daviw Williams Date: Fri, 30 Nov 2012 16:08:35 +0100 Subject: [PATCH] Fixed bug with checking the wrong direction before peeking. --- library/PolyVoxCore/include/PolyVoxCore/RawVolumeSampler.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/PolyVoxCore/include/PolyVoxCore/RawVolumeSampler.inl b/library/PolyVoxCore/include/PolyVoxCore/RawVolumeSampler.inl index 41b8995a..6d8a38b0 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/RawVolumeSampler.inl +++ b/library/PolyVoxCore/include/PolyVoxCore/RawVolumeSampler.inl @@ -247,7 +247,7 @@ namespace PolyVox template VoxelType RawVolume::Sampler::peekVoxel0px1ny1nz(void) const { - if(checkValidFlags(Current | NegativeX | NegativeZ)) + if(checkValidFlags(Current | NegativeY | NegativeZ)) { return *(mCurrentVoxel - this->mVolume->getWidth() - this->mVolume->getWidth() * this->mVolume->getHeight()); }