1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Ensure voxelizer sdf generation considers the correct level

This commit is contained in:
Rhapsody Aria
2025-01-16 00:08:49 -08:00
parent d33da79d3f
commit 393a13a74b

View File

@@ -871,7 +871,7 @@ Voxelizer::BakeResult Voxelizer::get_sdf_3d_image(Vector<uint8_t> &r_image, Bake
uint32_t cell_count = bake_cells.size();
for (uint32_t i = 0; i < cell_count; i++) {
if (cells[i].level < (cell_subdiv - 1)) {
if (cells[i].level < cell_subdiv) {
continue; //do not care about this level
}