mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 01:22:01 +00:00
A turned copy can push its root's turn and a swapped nested head at once. The push replaces the head in the main with a new shape. The composable model wrote that head's turn in the frame its main parent had before the push and left the root's turn to the parent orientation step, which only turns shapes that existed before. The model then expected the head without the root's turn, while the editor rightly gives it the copy's turn in its parent. A main shape the push adds now takes its parent's turn after the push. Test: updating-a-turned-main-from-a-swapped-head-turns-the-new-head-with- its-parent (the variant gate program of round 13, seed 371855618). Common suite: 2432 tests, 0 failures. Harness only; the benchmark is not run. Also in this commit: - Carry a mirrored turn that shares the new copy's rotation in the model. A copy can turn a mirrored child so that it stores the same rotation and flip as the new copy of a switch, but with the other mirror transform. The editor carries the copy's turn with its transform, since the old main and the new copy point their axes alike. The composable model compared only the rotations, found them equal and carried nothing. The same turn of two mirrored child shapes now differs in the model where their placed axes do. AI-assisted-by: claude-opus-5-5