mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Cut: Prevent the neither part kept option
This commit is contained in:
parent
3e28905621
commit
4ffe76f012
4 changed files with 34 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue