mirror of
https://github.com/ppy/osu.git
synced 2024-11-08 06:19:38 +08:00
Advance editor clock after a snapped placement (#6754)
Advance editor clock after a snapped placement
This commit is contained in:
commit
b1b354c420
@ -40,6 +40,9 @@ namespace osu.Game.Rulesets.Edit
|
||||
[Resolved]
|
||||
protected IFrameBasedClock EditorClock { get; private set; }
|
||||
|
||||
[Resolved]
|
||||
private IAdjustableClock adjustableClock { get; set; }
|
||||
|
||||
[Resolved]
|
||||
private BindableBeatDivisor beatDivisor { get; set; }
|
||||
|
||||
@ -256,6 +259,9 @@ namespace osu.Game.Rulesets.Edit
|
||||
public void EndPlacement(HitObject hitObject)
|
||||
{
|
||||
EditorBeatmap.Add(hitObject);
|
||||
|
||||
adjustableClock.Seek(hitObject.StartTime);
|
||||
|
||||
showGridFor(Enumerable.Empty<HitObject>());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user