mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 21:07:18 +09:00
Fix beat divisor not saving in editor
This commit is contained in:
parent
b2b6672095
commit
f7f58b06a1
@ -158,9 +158,6 @@ namespace osu.Game.Screens.Edit
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
beatDivisor.Value = playableBeatmap.BeatmapInfo.BeatDivisor;
|
|
||||||
beatDivisor.BindValueChanged(divisor => playableBeatmap.BeatmapInfo.BeatDivisor = divisor.NewValue);
|
|
||||||
|
|
||||||
// Todo: should probably be done at a DrawableRuleset level to share logic with Player.
|
// Todo: should probably be done at a DrawableRuleset level to share logic with Player.
|
||||||
clock = new EditorClock(playableBeatmap, beatDivisor) { IsCoupled = false };
|
clock = new EditorClock(playableBeatmap, beatDivisor) { IsCoupled = false };
|
||||||
clock.ChangeSource(loadableBeatmap.Track);
|
clock.ChangeSource(loadableBeatmap.Track);
|
||||||
@ -178,6 +175,9 @@ namespace osu.Game.Screens.Edit
|
|||||||
changeHandler = new EditorChangeHandler(editorBeatmap);
|
changeHandler = new EditorChangeHandler(editorBeatmap);
|
||||||
dependencies.CacheAs<IEditorChangeHandler>(changeHandler);
|
dependencies.CacheAs<IEditorChangeHandler>(changeHandler);
|
||||||
|
|
||||||
|
beatDivisor.Value = editorBeatmap.BeatmapInfo.BeatDivisor;
|
||||||
|
beatDivisor.BindValueChanged(divisor => editorBeatmap.BeatmapInfo.BeatDivisor = divisor.NewValue);
|
||||||
|
|
||||||
updateLastSavedHash();
|
updateLastSavedHash();
|
||||||
|
|
||||||
Schedule(() =>
|
Schedule(() =>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user