Fix cube geometry wrongly considered empty
parent
6ed4ef32b7
commit
27180e11e6
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue