Merge pull request #8379 from penpot/superalex-fix-grouped-component-shadow

🐛 Fix grouped component shadow
This commit is contained in:
Elena Torró 2026-02-17 09:54:37 +01:00 committed by GitHub
commit 1cb113dfeb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 11237 additions and 282 deletions

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 348 KiB

After

Width:  |  Height:  |  Size: 348 KiB

View File

@ -1703,7 +1703,13 @@ impl RenderState {
);
if !matches!(element.shape_type, Type::Bool(_)) {
for shadow_shape_id in element.children.iter() {
let shadow_children = if element.is_recursive() {
get_simplified_children(tree, element)
} else {
Vec::new()
};
for shadow_shape_id in shadow_children.iter() {
let Some(shadow_shape) = tree.get(shadow_shape_id) else {
continue;
};