Fix cube geometry wrongly considered empty

master
Marc Gilleron 2020-08-13 20:43:34 +01:00
parent 6ed4ef32b7
commit 27180e11e6
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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<Vector3> positions;