mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:52:53 +08:00
Avoid unnecessary object updates from SelectionHandlers
This commit is contained in:
parent
600d37cc04
commit
1aa8b400d4
@ -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();
|
||||
}
|
||||
|
@ -288,8 +288,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
{
|
||||
var comboInfo = h as IHasComboInformation;
|
||||
|
||||
if (comboInfo == null)
|
||||
continue;
|
||||
if (comboInfo == null || comboInfo.NewCombo == state) continue;
|
||||
|
||||
comboInfo.NewCombo = state;
|
||||
EditorBeatmap?.UpdateHitObject(h);
|
||||
|
Loading…
Reference in New Issue
Block a user