Cut: Re-center objects after cut
This commit is contained in:
parent
9f2fdfabb9
commit
63faa917a9
@ -1072,10 +1072,12 @@ ModelObjectPtrs ModelObject::cut(size_t instance, coordf_t z, bool keep_upper, b
|
||||
|
||||
if (keep_upper && upper->volumes.size() > 0) {
|
||||
upper->invalidate_bounding_box();
|
||||
upper->center_around_origin();
|
||||
res.push_back(upper);
|
||||
}
|
||||
if (keep_lower && lower->volumes.size() > 0) {
|
||||
lower->invalidate_bounding_box();
|
||||
lower->center_around_origin();
|
||||
res.push_back(lower);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user