mirror of
https://github.com/penpot/penpot.git
synced 2025-03-25 14:11:33 -05:00
🐛 Fix extra rotations for frames contained elements with wasm render
This commit is contained in:
parent
69cc72de61
commit
5be92009bc
1 changed files with 4 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue