mirror of
https://github.com/Relintai/voxelman.git
synced 2024-11-12 10:15:12 +01:00
Renamed free to free_chunk, as it collided with Object's free().
This commit is contained in:
parent
9b842c159a
commit
a633808274
@ -590,7 +590,7 @@ void VoxelChunk::free_debug_immediate_geometry() {
|
||||
}
|
||||
}
|
||||
|
||||
void VoxelChunk::free() {
|
||||
void VoxelChunk::free_chunk() {
|
||||
free_debug_immediate_geometry();
|
||||
free_main_mesh();
|
||||
remove_colliders();
|
||||
@ -842,7 +842,7 @@ void VoxelChunk::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("create_debug_immediate_geometry"), &VoxelChunk::create_debug_immediate_geometry);
|
||||
ClassDB::bind_method(D_METHOD("free_debug_immediate_geometry"), &VoxelChunk::free_debug_immediate_geometry);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("free"), &VoxelChunk::free);
|
||||
ClassDB::bind_method(D_METHOD("free_chunk"), &VoxelChunk::free_chunk);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("draw_cross_voxels", "pos"), &VoxelChunk::draw_cross_voxels);
|
||||
ClassDB::bind_method(D_METHOD("draw_cross_voxels_fill", "pos", "fill"), &VoxelChunk::draw_cross_voxels_fill);
|
||||
|
@ -129,7 +129,7 @@ public:
|
||||
void create_debug_immediate_geometry();
|
||||
void free_debug_immediate_geometry();
|
||||
|
||||
void free();
|
||||
void free_chunk();
|
||||
|
||||
void draw_cross_voxels(Vector3 pos);
|
||||
void draw_cross_voxels_fill(Vector3 pos, float fill);
|
||||
|
Loading…
Reference in New Issue
Block a user