mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09: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:
@ -110,11 +110,11 @@ namespace osu.Game.Screens.Edit
|
|||||||
foreach (var obj in HitObjects)
|
foreach (var obj in HitObjects)
|
||||||
trackStartTime(obj);
|
trackStartTime(obj);
|
||||||
|
|
||||||
PreviewTime = new BindableInt(playableBeatmap.Metadata.PreviewTime);
|
PreviewTime = new BindableInt(BeatmapInfo.Metadata.PreviewTime);
|
||||||
PreviewTime.BindValueChanged(s =>
|
PreviewTime.BindValueChanged(s =>
|
||||||
{
|
{
|
||||||
BeginChange();
|
BeginChange();
|
||||||
this.beatmapInfo.Metadata.PreviewTime = s.NewValue;
|
BeatmapInfo.Metadata.PreviewTime = s.NewValue;
|
||||||
EndChange();
|
EndChange();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user