mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:12:54 +08:00
Move difficulty copy to BeatmapModelManager.Save
This commit is contained in:
parent
ca9c79b758
commit
0df409c050
@ -192,6 +192,8 @@ namespace osu.Game.Beatmaps
|
||||
{
|
||||
var setInfo = beatmapInfo.BeatmapSet;
|
||||
|
||||
beatmapInfo.BaseDifficulty.CopyFrom(beatmapContent.Difficulty);
|
||||
|
||||
using (var stream = new MemoryStream())
|
||||
{
|
||||
using (var sw = new StreamWriter(stream, Encoding.UTF8, 1024, true))
|
||||
|
@ -332,8 +332,6 @@ namespace osu.Game.Screens.Edit
|
||||
// no longer new after first user-triggered save.
|
||||
isNewBeatmap = false;
|
||||
|
||||
playableBeatmap.BeatmapInfo.BaseDifficulty.CopyFrom(playableBeatmap.Difficulty);
|
||||
|
||||
// apply any set-level metadata changes.
|
||||
beatmapManager.Update(playableBeatmap.BeatmapInfo.BeatmapSet);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user