mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 01:22:01 +00:00
After a turn and a fill resize, nested copies sit a few thousandths of a pixel from where their mains place them. A detach that advanced them, and a resize that scaled a swapped head by that much, made their geometry an override for the noise alone: they stopped following their mains' geometry (F593). `turned-like-parent?`, the place check of `generate-keep-advanced-placement` (`close-geometry?` now takes a precision) and the resize check of `author-resized-swapped-heads` compare sizes and corners to a hundredth of a pixel, as the rest of sync compares them. The composable model's `sync-scaled-heads` does the same. Found by a fresh gate round (seed 20261117, variant property). Test: generated `generated-a-detach-authors-no-geometry-for-float-noise`. Benchmark (bench-components, alone): | :world | :baseline | :now | :mean | :ratio | |------------------------------------+-----------+---------+---------+--------| | deepest-edit-through-three-levels | 35.215 | 21.107 | 21.817 | 0.6 | | edit-through-a-chain-of-dependents | 68.931 | 46.08 | 47.003 | 0.67 | | library-update-into-copies | 83.083 | 56.955 | 57.969 | 0.69 | | main-edit-among-many-shapes | 4.837 | 2.37 | 2.545 | 0.49 | | main-edit-into-10-copies | 1.79 | 1.068 | 1.11 | 0.6 | | main-edit-into-100-copies | 15.415 | 10.438 | 10.941 | 0.68 | | main-edit-into-1000-copies | 153.086 | 103.384 | 109.082 | 0.68 | | variant-switch-into-copies | 32.052 | 24.999 | 25.423 | 0.78 | AI-assisted-by: claude-opus-5-5