From 27180e11e62185f7b2e479c6f8a179bd475a6411 Mon Sep 17 00:00:00 2001 From: Marc Gilleron Date: Thu, 13 Aug 2020 20:43:34 +0100 Subject: [PATCH] Fix cube geometry wrongly considered empty --- meshers/blocky/voxel.cpp | 2 +- meshers/blocky/voxel.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meshers/blocky/voxel.cpp b/meshers/blocky/voxel.cpp index 16fa8a77..1123aeb0 100644 --- a/meshers/blocky/voxel.cpp +++ b/meshers/blocky/voxel.cpp @@ -222,7 +222,7 @@ static void bake_cube_geometry(Voxel &config, Voxel::BakedData &baked_data, int } } - baked_data.empty = true; + baked_data.empty = false; } static void bake_mesh_geometry(Voxel &config, Voxel::BakedData &baked_data) { diff --git a/meshers/blocky/voxel.h b/meshers/blocky/voxel.h index ca29c09a..b29c5e97 100644 --- a/meshers/blocky/voxel.h +++ b/meshers/blocky/voxel.h @@ -18,7 +18,7 @@ class Voxel : public Resource { public: // Plain data strictly used by the mesher. // It becomes distinct because it's going to be used in a multithread environment, - // while the configuration that produced thed data can be changed by the user at any time. + // while the configuration that produced the data can be changed by the user at any time. struct BakedData { struct Model { std::vector positions;