mirror of
https://github.com/penpot/penpot.git
synced 2025-07-12 05:37:16 +02:00
🐛 Fix asynchronous content rendering
This commit is contained in:
parent
d0425cabda
commit
d71fa659d5
12 changed files with 166 additions and 100 deletions
|
@ -191,6 +191,12 @@ impl<'a> State<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn update_tile_for_shape(&mut self, shape_id: Uuid) {
|
||||
if let Some(shape) = self.shapes.get_mut(&shape_id) {
|
||||
self.render_state.update_tile_for(shape);
|
||||
}
|
||||
}
|
||||
|
||||
pub fn update_tile_for_current_shape(&mut self) {
|
||||
match self.current_shape.as_mut() {
|
||||
Some(shape) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue