Pattern and Mirror copies of a primitive change only the seed's targets (#2755) (#2756)

Thanks @rlartot.
This commit is contained in:
rlartot
2026-10-19 13:44:40 +02:00
committed by GitHub
parent 355154fa9b
commit aef13b52f4
2 changed files with 31 additions and 0 deletions
+3
View File
@@ -4356,6 +4356,9 @@ fn replay(
continue;
}
let (op, targets) = feature_op(src);
// A primitive's or a hole's targets are its participants (#1108): the copies change
// those bodies only, like the feature itself (#2755).
let targets = if targets.is_empty() { src.participants.clone() } else { targets };
let mut copies = Vec::new();
if let FeatureKind::Hole { diameter, depth, hole, to, .. } = &src.kind {
// A hole is drilled again at each copy of its spot (found on the surface there), so