0
Fork 0
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:
Alejandro Alonso 2025-01-22 09:12:10 +01:00
parent 69cc72de61
commit 5be92009bc

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 {