mirror of
https://github.com/ppy/osu.git
synced 2025-02-14 00:03:21 +08:00
Merge pull request #12926 from peppy/fix-placement-blueprint-disappearing
Fix editor placement ending early if a blueprint becomes alive from a pool
This commit is contained in:
commit
af2a831c83
@ -61,6 +61,8 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
|
||||
inputManager = GetContainingInputManager();
|
||||
|
||||
Beatmap.HitObjectAdded += hitObjectAdded;
|
||||
|
||||
// updates to selected are handled for us by SelectionHandler.
|
||||
NewCombo.BindTo(SelectionHandler.SelectionNewComboState);
|
||||
|
||||
@ -259,10 +261,9 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
|
||||
public virtual HitObjectSelectionBlueprint CreateHitObjectBlueprintFor(HitObject hitObject) => null;
|
||||
|
||||
protected override void OnBlueprintAdded(HitObject item)
|
||||
private void hitObjectAdded(HitObject obj)
|
||||
{
|
||||
base.OnBlueprintAdded(item);
|
||||
|
||||
// refresh the tool to handle the case of placement completing.
|
||||
refreshTool();
|
||||
|
||||
// on successful placement, the new combo button should be reset as this is the most common user interaction.
|
||||
|
Loading…
Reference in New Issue
Block a user