mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Move cloning local to editor
This commit is contained in:
@ -111,8 +111,6 @@ namespace osu.Game.Beatmaps
|
|||||||
// Convert
|
// Convert
|
||||||
IBeatmap converted = converter.Convert(cancellationSource.Token);
|
IBeatmap converted = converter.Convert(cancellationSource.Token);
|
||||||
|
|
||||||
converted.ControlPointInfo = converted.ControlPointInfo.CreateCopy();
|
|
||||||
|
|
||||||
// Apply conversion mods to the result
|
// Apply conversion mods to the result
|
||||||
foreach (var mod in mods.OfType<IApplicableAfterBeatmapConversion>())
|
foreach (var mod in mods.OfType<IApplicableAfterBeatmapConversion>())
|
||||||
{
|
{
|
||||||
|
@ -131,6 +131,10 @@ namespace osu.Game.Screens.Edit
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
playableBeatmap = Beatmap.Value.GetPlayableBeatmap(Beatmap.Value.BeatmapInfo.Ruleset);
|
playableBeatmap = Beatmap.Value.GetPlayableBeatmap(Beatmap.Value.BeatmapInfo.Ruleset);
|
||||||
|
|
||||||
|
// clone these locally for now to avoid incurring overhead on GetPlayableBeatmap usages.
|
||||||
|
// eventually we will want to improve how/where this is done as there are issues with *not* cloning it in all cases.
|
||||||
|
playableBeatmap.ControlPointInfo = playableBeatmap.ControlPointInfo.CreateCopy();
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user