mirror of
https://github.com/penpot/penpot.git
synced 2026-09-10 22:19:19 +00:00
🐛 Do not add shadows on hidden children
This commit is contained in:
parent
441dc33e38
commit
32770c685a
@ -1334,6 +1334,9 @@ impl RenderState {
|
|||||||
// Nested shapes shadowing - apply black shadow to child shapes too
|
// Nested shapes shadowing - apply black shadow to child shapes too
|
||||||
for shadow_shape_id in element.children.iter() {
|
for shadow_shape_id in element.children.iter() {
|
||||||
let shadow_shape = tree.get(shadow_shape_id).unwrap();
|
let shadow_shape = tree.get(shadow_shape_id).unwrap();
|
||||||
|
if shadow_shape.hidden {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
let clip_bounds = node_render_state.get_nested_shadow_clip_bounds(
|
let clip_bounds = node_render_state.get_nested_shadow_clip_bounds(
|
||||||
element,
|
element,
|
||||||
modifiers.get(&element.id),
|
modifiers.get(&element.id),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user