mirror of
https://github.com/Relintai/godot_voxel.git
synced 2024-11-11 20:35:08 +01:00
Remove default channel from is_uniform()
to prevent mistakes
This commit is contained in:
parent
227bf5ad36
commit
0f378fe218
@ -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", "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("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);
|
ClassDB::bind_method(D_METHOD("optimize"), &VoxelBuffer::optimize);
|
||||||
|
|
||||||
BIND_ENUM_CONSTANT(CHANNEL_TYPE);
|
BIND_ENUM_CONSTANT(CHANNEL_TYPE);
|
||||||
|
@ -76,7 +76,7 @@ public:
|
|||||||
_FORCE_INLINE_ void fill_iso(float value, unsigned int channel = 0) { fill(iso_to_byte(value), channel); }
|
_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);
|
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();
|
void optimize();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user