mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 01:22:01 +00:00
A mirror stores one turn as two rotations, such as 315 and 45, with the same transform. On a switch, the old copy child stored 315 and its new copy 45, so the editor rightly carried nothing, while the composable model compared the rotations by number and expected the turn to carry. The turns of two mirrored child shapes now differ in the model only where their placed axes do. Test: switching-a-copy-carries-no-mirrored-turn-stored-the-other-way-in- the-model (the variant gate program of round 15, seed 164135730). Common suite: 2438 tests, 0 failures (with the next commit). Harness only; the benchmark is not run. Also in this commit: - Model only the turn a resized top root shows against its parent. A top copy root that authors its geometry inherits its parent's turn, and update-main pushes only the turn it shows against that parent. In a turned parent, a resized root then leaves the main root and a swapped head pushed with it unturned. The composable model took the whole turn of such a root as pushed and expected the new head turned with it. It now takes a root that authors its geometry as inheriting its parent's turn, as a nested root does; only a top root that authors none inherits all of its turn. - The harness changes that check the next commit, "Keep on the copy a layout child override no layout parent pushes". AI-assisted-by: claude-opus-5-5