ENABLE_ALLOW_NEGATIVE_Z -> Fixed build when the tech is disabled

This commit is contained in:
enricoturri1966 2021-07-21 12:28:03 +02:00
parent 1f3252dd78
commit 4b312ae170

View file

@ -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()};