mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Mark CreateHitObjectComposer() accept null.
And add the null check in the test case.
This commit is contained in:
@ -39,7 +39,13 @@ namespace osu.Game.Tests.Visual.Editing
|
||||
Dependencies.Cache(EditorBeatmap);
|
||||
Dependencies.CacheAs<IBeatSnapProvider>(EditorBeatmap);
|
||||
|
||||
Composer = playable.BeatmapInfo.Ruleset.CreateInstance().CreateHitObjectComposer().With(d => d.Alpha = 0);
|
||||
Composer = playable.BeatmapInfo.Ruleset.CreateInstance().CreateHitObjectComposer().With(d =>
|
||||
{
|
||||
if (d == null)
|
||||
return;
|
||||
|
||||
d.Alpha = 0;
|
||||
});
|
||||
|
||||
Add(new OsuContextMenuContainer
|
||||
{
|
||||
|
Reference in New Issue
Block a user