mirror of
https://github.com/ppy/osu
synced 2025-03-01 17:11:12 +00:00
Reword comment to not mention tests driectly
This commit is contained in:
parent
a639132825
commit
dbfaaecd9c
@ -497,9 +497,11 @@ namespace osu.Game.Screens.Edit
|
|||||||
ApplyToBackground(b => b.FadeColour(Color4.White, 500));
|
ApplyToBackground(b => b.FadeColour(Color4.White, 500));
|
||||||
resetTrack();
|
resetTrack();
|
||||||
|
|
||||||
|
// To update the game-wide beatmap with any changes, perform a re-fetch on exit.
|
||||||
|
// This is required as the editor makes its local changes via EditorBeatmap
|
||||||
|
// (which are not propagated outwards to a potentially cached WorkingBeatmap).
|
||||||
var refetchedBeatmap = beatmapManager.GetWorkingBeatmap(Beatmap.Value.BeatmapInfo);
|
var refetchedBeatmap = beatmapManager.GetWorkingBeatmap(Beatmap.Value.BeatmapInfo);
|
||||||
|
|
||||||
// beatmap re-fetch may not be feasible in tests.
|
|
||||||
if (!(refetchedBeatmap is DummyWorkingBeatmap))
|
if (!(refetchedBeatmap is DummyWorkingBeatmap))
|
||||||
Beatmap.Value = refetchedBeatmap;
|
Beatmap.Value = refetchedBeatmap;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user