Fix beatmap skin properties not copying

This commit is contained in:
Bartłomiej Dach
2022-02-06 18:50:11 +01:00
parent 1292722a00
commit a144d6f8d6
3 changed files with 39 additions and 13 deletions

View File

@ -9,6 +9,7 @@ using JetBrains.Annotations;
using osu.Framework;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Extensions.ObjectExtensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
@ -853,13 +854,14 @@ namespace osu.Game.Screens.Edit
private void switchToNewDifficulty(RulesetInfo rulesetInfo, bool clearAllObjects)
=> loader?.ScheduleSwitchToNewDifficulty(new NewDifficultyCreationParameters
{
BeatmapSet = editorBeatmap.BeatmapInfo.BeatmapSet,
Ruleset = rulesetInfo,
ReferenceBeatmap = playableBeatmap,
ClearAllObjects = clearAllObjects,
EditorState = GetState()
});
(
editorBeatmap.BeatmapInfo.BeatmapSet.AsNonNull(),
rulesetInfo,
playableBeatmap,
editorBeatmap.BeatmapSkin,
clearAllObjects,
GetState()
));
private EditorMenuItem createDifficultySwitchMenu()
{