mirror of
https://github.com/ppy/osu
synced 2025-01-04 05:12:10 +00:00
Use sane BeatmapInfo
for preview time mutation
`EditorBeatmap.BeatmapInfo` is usually the correct instance for mutating properties that should persist in the database.
This commit is contained in:
parent
b689ad6d80
commit
904c76e437
@ -110,11 +110,11 @@ namespace osu.Game.Screens.Edit
|
||||
foreach (var obj in HitObjects)
|
||||
trackStartTime(obj);
|
||||
|
||||
PreviewTime = new BindableInt(playableBeatmap.Metadata.PreviewTime);
|
||||
PreviewTime = new BindableInt(BeatmapInfo.Metadata.PreviewTime);
|
||||
PreviewTime.BindValueChanged(s =>
|
||||
{
|
||||
BeginChange();
|
||||
this.beatmapInfo.Metadata.PreviewTime = s.NewValue;
|
||||
BeatmapInfo.Metadata.PreviewTime = s.NewValue;
|
||||
EndChange();
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user