Fix default value for CHANNEL_ISOLEVEL, it should be the integer raw value, not the quantified one

This commit is contained in:
Marc Gilleron 2019-04-28 00:23:10 +01:00
parent a67ea390d5
commit 2e419db855
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
#include <string.h> #include <string.h>
VoxelBuffer::VoxelBuffer() { VoxelBuffer::VoxelBuffer() {
_channels[CHANNEL_ISOLEVEL].defval = 1.0; _channels[CHANNEL_ISOLEVEL].defval = 255;
} }
VoxelBuffer::~VoxelBuffer() { VoxelBuffer::~VoxelBuffer() {

View File

@ -14,7 +14,7 @@ VoxelMap::VoxelMap() :
_default_voxel[i] = 0; _default_voxel[i] = 0;
} }
_default_voxel[VoxelBuffer::CHANNEL_ISOLEVEL] = 1.0; _default_voxel[VoxelBuffer::CHANNEL_ISOLEVEL] = 255;
} }
VoxelMap::~VoxelMap() { VoxelMap::~VoxelMap() {