Cut: Prevent the neither part kept option

This commit is contained in:
Vojtech Kral 2019-01-18 15:02:07 +01:00
parent 3e28905621
commit 4ffe76f012
4 changed files with 34 additions and 2 deletions

View file

@ -2767,6 +2767,10 @@ void Plater::cut(size_t obj_idx, size_t instance_idx, coordf_t z, bool keep_uppe
wxCHECK_RET(instance_idx < object->instances.size(), "instance_idx out of bounds");
if (!keep_upper && !keep_lower) {
return;
}
const auto new_objects = object->cut(instance_idx, z, keep_upper, keep_lower, rotate_lower);
remove(obj_idx);