mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
The logic to swap a component would delete the swapped out component first before bringing in the new one. In the process of doing so, the sanitization code would unmask the group, now orphan of its mask shape component, when it was the first element of the group. The fix was to pass an optional argument to the generate-delete-shapes function to ignore mask in special cases like this. Signed-off-by: Dalai Felinto <dalai@blender.org>