mirror of
https://github.com/ppy/osu
synced 2025-02-06 13:22:14 +00:00
revert EndPlacement change
This commit is contained in:
parent
d6ed561280
commit
42bb9dc3e3
@ -1,8 +1,6 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
#nullable disable
|
|
||||||
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using osu.Game.Rulesets.Edit;
|
using osu.Game.Rulesets.Edit;
|
||||||
using osu.Game.Rulesets.Edit.Tools;
|
using osu.Game.Rulesets.Edit.Tools;
|
||||||
@ -19,16 +17,6 @@ namespace osu.Game.Rulesets.Taiko.Edit
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void EndPlacement(HitObject hitObject, bool commit)
|
|
||||||
{
|
|
||||||
EditorBeatmap.PlacementObject.Value = null;
|
|
||||||
|
|
||||||
if (commit)
|
|
||||||
{
|
|
||||||
EditorBeatmap.Add(hitObject);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override IReadOnlyList<HitObjectCompositionTool> CompositionTools => new HitObjectCompositionTool[]
|
protected override IReadOnlyList<HitObjectCompositionTool> CompositionTools => new HitObjectCompositionTool[]
|
||||||
{
|
{
|
||||||
new HitCompositionTool(),
|
new HitCompositionTool(),
|
||||||
|
@ -359,7 +359,7 @@ namespace osu.Game.Rulesets.Edit
|
|||||||
EditorBeatmap.PlacementObject.Value = hitObject;
|
EditorBeatmap.PlacementObject.Value = hitObject;
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual void EndPlacement(HitObject hitObject, bool commit)
|
public void EndPlacement(HitObject hitObject, bool commit)
|
||||||
{
|
{
|
||||||
EditorBeatmap.PlacementObject.Value = null;
|
EditorBeatmap.PlacementObject.Value = null;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user