Fixed bug with peek function checking in wrong direction.
This commit is contained in:
		
				
					committed by
					
						 Matt Williams
						Matt Williams
					
				
			
			
				
	
			
			
			
						parent
						
							f87b19bd58
						
					
				
				
					commit
					9a30fa54a5
				
			| @@ -238,7 +238,7 @@ namespace PolyVox | ||||
| 	template <typename VoxelType> | ||||
| 	VoxelType RawVolume<VoxelType>::Sampler::peekVoxel0px1ny1nz(void) const | ||||
| 	{ | ||||
| 		if( BORDER_LOWX(this->mYPosInVolume) && BORDER_LOWZ(this->mZPosInVolume) ) | ||||
| 		if( BORDER_LOWY(this->mYPosInVolume) && BORDER_LOWZ(this->mZPosInVolume) ) | ||||
| 		{ | ||||
| 			return *(mCurrentVoxel - this->mVolume->getWidth() - this->mVolume->getWidth() * this->mVolume->getHeight()); | ||||
| 		} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user