mirror of
https://github.com/penpot/penpot.git
synced 2026-10-30 06:20:32 +00:00
generate-add-new-property changes all the components of the variant, so it now validates the variant container. generate-make-shapes-variant calls it while some shapes of the container may not be variants yet, e.g. when a component is restored into the container, which gave a false :main-instance-not-a-variant. Reordering the calls changes the resulting property names, so add a :skip-validation? option instead. generate-make-shapes-variant uses it and does not validate on its own: its callers validate the container once the shapes are inside it. AI-assisted-by: claude-opus-5-5