mirror of
https://github.com/Relintai/godot_voxel.git
synced 2024-12-25 16:27:16 +01:00
Initialize stats before each meshing
This commit is contained in:
parent
b627a5736d
commit
19329efaa6
@ -1280,6 +1280,8 @@ Ref<ArrayMesh> VoxelMesherDMC::build_mesh(const VoxelBuffer &voxels) {
|
|||||||
// - Gradients must be precalculated
|
// - Gradients must be precalculated
|
||||||
// - The non-padded area size is cubic and power of two
|
// - The non-padded area size is cubic and power of two
|
||||||
|
|
||||||
|
_stats = { 0 };
|
||||||
|
|
||||||
int padding = 1;
|
int padding = 1;
|
||||||
const Vector3i buffer_size = voxels.get_size();
|
const Vector3i buffer_size = voxels.get_size();
|
||||||
// Taking previous power of two because the algorithm uses an integer cubic octree, and data should be padded
|
// Taking previous power of two because the algorithm uses an integer cubic octree, and data should be padded
|
||||||
|
Loading…
Reference in New Issue
Block a user