Cut: Re-center objects after cut

This commit is contained in:
Vojtech Kral 2018-11-26 13:35:09 +01:00
parent 9f2fdfabb9
commit 63faa917a9

View File

@ -1072,10 +1072,12 @@ ModelObjectPtrs ModelObject::cut(size_t instance, coordf_t z, bool keep_upper, b
if (keep_upper && upper->volumes.size() > 0) { if (keep_upper && upper->volumes.size() > 0) {
upper->invalidate_bounding_box(); upper->invalidate_bounding_box();
upper->center_around_origin();
res.push_back(upper); res.push_back(upper);
} }
if (keep_lower && lower->volumes.size() > 0) { if (keep_lower && lower->volumes.size() > 0) {
lower->invalidate_bounding_box(); lower->invalidate_bounding_box();
lower->center_around_origin();
res.push_back(lower); res.push_back(lower);
} }