mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
🐛 Fix children blur rendering
This commit is contained in:
@@ -1182,10 +1182,11 @@ impl RenderState {
|
||||
|
||||
if !node_render_state.is_root() {
|
||||
let transformed_element: Cow<Shape> = Cow::Borrowed(element);
|
||||
let extrect = element.extrect(tree);
|
||||
// FIXME: we need to find a way to update the extrect properly instead
|
||||
let bounds = transformed_element.apply_children_blur(extrect, tree);
|
||||
|
||||
let is_visible = transformed_element
|
||||
.extrect(tree)
|
||||
.intersects(self.render_area)
|
||||
let is_visible = bounds.intersects(self.render_area)
|
||||
&& !transformed_element.hidden
|
||||
&& !transformed_element.visually_insignificant(self.get_scale(), tree);
|
||||
|
||||
@@ -1346,9 +1347,7 @@ impl RenderState {
|
||||
|
||||
match element.shape_type {
|
||||
Type::Frame(_) | Type::Group(_) => {
|
||||
if let Some(blur) = element.blur {
|
||||
self.nested_blurs.push(Some(blur));
|
||||
}
|
||||
self.nested_blurs.push(element.blur);
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user