🎉 Avoid full tiles rebuild on set modifiers

This commit is contained in:
Alejandro Alonso 2025-03-28 07:46:00 +01:00
parent a109f11926
commit 6953a57333
3 changed files with 20 additions and 4 deletions

View file

@ -613,10 +613,7 @@ pub extern "C" fn set_modifiers() {
for entry in entries {
state.modifiers.insert(entry.id, entry.transform);
}
// TODO: Do a more specific rebuild of tiles. For
// example: using only the selected shapes to rebuild
// the tiles affected by the selected shapes.
state.rebuild_tiles();
state.rebuild_modifier_tiles();
});
}