mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 06:43:21 +08:00
Merge pull request #10271 from peppy/editor-fix-unnecessary-updates
Avoid unnecessary object updates from SelectionHandlers
This commit is contained in:
commit
3fd8830f5b
@ -57,7 +57,13 @@ namespace osu.Game.Rulesets.Taiko.Edit
|
|||||||
ChangeHandler.BeginChange();
|
ChangeHandler.BeginChange();
|
||||||
|
|
||||||
foreach (var h in hits)
|
foreach (var h in hits)
|
||||||
h.IsStrong = state;
|
{
|
||||||
|
if (h.IsStrong != state)
|
||||||
|
{
|
||||||
|
h.IsStrong = state;
|
||||||
|
EditorBeatmap.UpdateHitObject(h);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ChangeHandler.EndChange();
|
ChangeHandler.EndChange();
|
||||||
}
|
}
|
||||||
|
@ -288,8 +288,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
|||||||
{
|
{
|
||||||
var comboInfo = h as IHasComboInformation;
|
var comboInfo = h as IHasComboInformation;
|
||||||
|
|
||||||
if (comboInfo == null)
|
if (comboInfo == null || comboInfo.NewCombo == state) continue;
|
||||||
continue;
|
|
||||||
|
|
||||||
comboInfo.NewCombo = state;
|
comboInfo.NewCombo = state;
|
||||||
EditorBeatmap?.UpdateHitObject(h);
|
EditorBeatmap?.UpdateHitObject(h);
|
||||||
|
Loading…
Reference in New Issue
Block a user