mirror of
https://github.com/penpot/penpot.git
synced 2025-06-15 23:41:37 +02:00
🐛 Fix avoid uncacheable tiles (#6281)
This commit is contained in:
parent
25a44e1387
commit
f3d13005b2
2 changed files with 16 additions and 7 deletions
|
@ -81,6 +81,10 @@ impl TileHashMap {
|
|||
if let Some(shapes) = self.grid.get_mut(&tile) {
|
||||
shapes.shift_remove(&id);
|
||||
}
|
||||
|
||||
if let Some(tiles) = self.index.get_mut(&id) {
|
||||
tiles.remove(&tile);
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_tiles_of(&mut self, shape_id: Uuid) -> Option<&HashSet<Tile>> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue