mirror of
https://github.com/penpot/penpot.git
synced 2026-10-29 14:00:37 +00:00
Copies still use stored main data after its component is deleted. Follow that data both when collecting inherited groups and when matching variant children, so a switch keeps inherited size, orientation and child fills. Portable live/deleted controls fail four assertions before the fix and pass all 16 afterward, including repeat sync and exact undo. Library seed 712 case 1462 and its 12-step shrink both pass. Focused regression and golden checks pass 148 tests, 2593 assertions; goldens are unchanged. Live WASM verifies height 80, rotation 45, child fill, groups, undo/redo and later main opacity propagation. Component benchmark ratios: mains 0.51/0.58/0.56; levels 0.50; chain 0.51; library 0.59; many shapes 0.48; variant switch 0.71. All worlds pass the unchanged baseline gate. AI-assisted-by: GPT-6