mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 10:43:04 +08:00
Fix NRE when hit object blueprint is not implemented
This commit is contained in:
parent
6c3d2315d0
commit
a9c7830252
@ -256,7 +256,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
|||||||
if (drawable == null)
|
if (drawable == null)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
return CreateHitObjectBlueprintFor(item).With(b => b.DrawableObject = drawable);
|
return CreateHitObjectBlueprintFor(item)?.With(b => b.DrawableObject = drawable);
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual HitObjectSelectionBlueprint CreateHitObjectBlueprintFor(HitObject hitObject) => null;
|
public virtual HitObjectSelectionBlueprint CreateHitObjectBlueprintFor(HitObject hitObject) => null;
|
||||||
|
Loading…
Reference in New Issue
Block a user