0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-16 03:58:20 -05:00

Merge pull request #5635 from penpot/superalex-render-wasm-fix-frames-anidated-content

🐛 Fix render wasm frames nested content issues
This commit is contained in:
Belén Albeza 2025-01-23 11:00:27 +01:00 committed by GitHub
commit 91990e4e29
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -338,15 +338,18 @@ impl RenderState {
}
}
self.drawing_surface.canvas().restore();
// draw all the children shapes
if element.is_recursive() {
for id in element.children_ids() {
self.drawing_surface.canvas().save();
is_complete = self.render_shape_tree(&id, tree) && is_complete;
self.drawing_surface.canvas().restore();
}
}
self.final_surface.canvas().restore();
self.drawing_surface.canvas().restore();
return is_complete;
} else {