Avoid unnecessary object updates from SelectionHandlers

This commit is contained in:
Dean Herbert
2020-09-28 14:45:36 +09:00
parent 600d37cc04
commit 1aa8b400d4
2 changed files with 8 additions and 3 deletions

View File

@ -57,7 +57,13 @@ namespace osu.Game.Rulesets.Taiko.Edit
ChangeHandler.BeginChange();
foreach (var h in hits)
h.IsStrong = state;
{
if (h.IsStrong != state)
{
h.IsStrong = state;
EditorBeatmap.UpdateHitObject(h);
}
}
ChangeHandler.EndChange();
}