diff --git a/crates/engine/src/cmd/pathops.rs b/crates/engine/src/cmd/pathops.rs index 75bb06bd0e..b98e49f512 100644 --- a/crates/engine/src/cmd/pathops.rs +++ b/crates/engine/src/cmd/pathops.rs @@ -677,6 +677,10 @@ fn run_pf(s: &mut Session, p: &Value, op: PathfinderOp) -> Result { } let shape_mode = matches!(op, PathfinderOp::Unite | PathfinderOp::MinusFront | PathfinderOp::Intersect | PathfinderOp::Exclude | PathfinderOp::MinusBack); + // An operand its clipping masks hide altogether is an empty shape for the operations whose + // result it changes (Intersect gives nothing, Minus Front loses its back object, Minus Back its + // front one, Crop its cropping shape); the others leave it out, which gives the same art. + let keeps_hidden = matches!(op, PathfinderOp::Intersect | PathfinderOp::MinusFront | PathfinderOp::MinusBack | PathfinderOp::Crop); let label = pf_label(op); let options = pf_options(s, p, &format!("object.pathfinder.{}", pf_id(op)))?; let ids = s.edit(label, |d, sel| { @@ -684,39 +688,41 @@ fn run_pf(s: &mut Session, p: &Value, op: PathfinderOp) -> Result { let mut styles: Vec