ENABLE_ALLOW_NEGATIVE_Z -> Fixed build when the tech is disabled
This commit is contained in:
parent
1f3252dd78
commit
4b312ae170
1 changed files with 4 additions and 0 deletions
|
@ -255,7 +255,11 @@ static void generate_thumbnail_from_stl(const std::string& filename)
|
|||
assert(model.objects[0]->instances.size() == 1);
|
||||
|
||||
model.objects[0]->center_around_origin(false);
|
||||
#if ENABLE_ALLOW_NEGATIVE_Z
|
||||
model.objects[0]->ensure_on_bed(false);
|
||||
#else
|
||||
model.objects[0]->ensure_on_bed();
|
||||
#endif // ENABLE_ALLOW_NEGATIVE_Z
|
||||
|
||||
const Vec3d bed_center_3d = wxGetApp().plater()->get_bed().get_bounding_box(false).center();
|
||||
const Vec2d bed_center_2d = { bed_center_3d.x(), bed_center_3d.y()};
|
||||
|
|
Loading…
Reference in a new issue