mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 01:22:01 +00:00
Flipping the mask of a mask group in a copy makes the group follow it. The model applied the mask's change twice, as the modifier tree passes a mask's change to its group and back, and when the group's orientation changed it placed the mask's authored geometry in the group, whose bounds come from that mask, halving it. The requested geometry of a group's mask applies its change once, and authored geometry under a group or bool follows the board around it when its parent's orientation changes, as elsewhere in the model. Test: flipping-the-mask-of-a-copy-group-flips-the-group-for-good; shape structure programs pass (seed 9002, 300). Harness only; the benchmark is not run. Also in this commit: - Compare a bool by its children, not its segments, when checking undo. Undoing an update main that pushed a flip into a main holding a bool gives the bool back the same rectangle with its segments drawn the other way round. A bool computes its segments from its children, in an order that depends on how it computed them. AI-assisted-by: claude-opus-5-5