mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 01:22:01 +00:00
The model of an update main turns the pushed geometry of a copy shape out of the orientation its copy root or parent inherits. A mirrored shape can store the opposite of its transform's turn as its rotation, and the model turned that stored value as if it were the turn: a Board storing 315 with a vertical flip, inside a copy root turned 45, was expected at 270 in the main, where its transform is unturned. The pushed geometry is now reoriented with the turn sign of the copy shape, as the model already does for a parent's orientation. Harness only; the benchmark is not run. Also in this commit: - Leave shapes below an authored swap out of a switch's old copy map. The switch model matches each old copy shape with its path in the old main by its ref chain. A swapped Board whose component holds a copy of the switched copy's own component reaches the old main's root through that nested copy, so the nested copy took the root's path and its turn override replaced the root's. The shapes below an authored swap belong to the swapped component and are left out of the map. AI-assisted-by: claude-opus-5-5