diff --git a/voxel_buffer.cpp b/voxel_buffer.cpp index 696727f9..adc55e9c 100644 --- a/voxel_buffer.cpp +++ b/voxel_buffer.cpp @@ -304,7 +304,7 @@ void VoxelBuffer::_bind_methods() { ClassDB::bind_method(D_METHOD("copy_from", "other", "channel"), &VoxelBuffer::_copy_from_binding, DEFVAL(0)); ClassDB::bind_method(D_METHOD("copy_from_area", "other", "src_min", "src_max", "dst_min", "channel"), &VoxelBuffer::_copy_from_area_binding, DEFVAL(0)); - ClassDB::bind_method(D_METHOD("is_uniform", "channel"), &VoxelBuffer::is_uniform, DEFVAL(0)); + ClassDB::bind_method(D_METHOD("is_uniform", "channel"), &VoxelBuffer::is_uniform); ClassDB::bind_method(D_METHOD("optimize"), &VoxelBuffer::optimize); BIND_ENUM_CONSTANT(CHANNEL_TYPE); diff --git a/voxel_buffer.h b/voxel_buffer.h index 6af94dc2..e95066da 100644 --- a/voxel_buffer.h +++ b/voxel_buffer.h @@ -76,7 +76,7 @@ public: _FORCE_INLINE_ void fill_iso(float value, unsigned int channel = 0) { fill(iso_to_byte(value), channel); } void fill_area(int defval, Vector3i min, Vector3i max, unsigned int channel_index = 0); - bool is_uniform(unsigned int channel_index = 0) const; + bool is_uniform(unsigned int channel_index) const; void optimize();