Add missing UpdateHitObject calls and move local to usages (not via bindables)

This commit is contained in:
Dean Herbert
2020-10-08 16:56:55 +09:00
parent 5d55f00139
commit ef092de9ba
3 changed files with 22 additions and 28 deletions

View File

@ -436,8 +436,12 @@ namespace osu.Game.Screens.Edit.Compose.Components
{
// Apply the start time at the newly snapped-to position
double offset = result.Time.Value - draggedObject.StartTime;
foreach (HitObject obj in SelectionHandler.SelectedHitObjects)
{
obj.StartTime += offset;
Beatmap.UpdateHitObject(obj);
}
}
return true;

View File

@ -392,6 +392,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
return;
repeatHitObject.RepeatCount = proposedCount;
beatmap.UpdateHitObject(hitObject);
break;
case IHasDuration endTimeHitObject:
@ -401,10 +402,9 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
return;
endTimeHitObject.Duration = snappedTime - hitObject.StartTime;
beatmap.UpdateHitObject(hitObject);
break;
}
beatmap.UpdateHitObject(hitObject);
}
}