1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 03:25:11 +08:00

Fix defaults not being applied correctly to blueprints after StartTime is changed

This commit is contained in:
Dean Herbert 2020-05-22 22:41:06 +09:00
parent ae133c2c2d
commit 83f4ba107f

View File

@ -34,6 +34,8 @@ namespace osu.Game.Rulesets.Edit
private readonly IBindable<WorkingBeatmap> beatmap = new Bindable<WorkingBeatmap>();
private Bindable<double> startTimeBindable;
[Resolved]
private IPlacementHandler placementHandler { get; set; }
@ -55,7 +57,8 @@ namespace osu.Game.Rulesets.Edit
EditorClock = clock;
ApplyDefaultsToHitObject();
startTimeBindable = HitObject.StartTimeBindable.GetBoundCopy();
startTimeBindable.BindValueChanged(_ => ApplyDefaultsToHitObject(), true);
}
/// <summary>