mirror of https://github.com/ppy/osu
Fix defaults not being applied correctly to blueprints after StartTime is changed
This commit is contained in:
parent
ae133c2c2d
commit
83f4ba107f
|
@ -34,6 +34,8 @@ public abstract class PlacementBlueprint : CompositeDrawable
|
|||
|
||||
private readonly IBindable<WorkingBeatmap> beatmap = new Bindable<WorkingBeatmap>();
|
||||
|
||||
private Bindable<double> startTimeBindable;
|
||||
|
||||
[Resolved]
|
||||
private IPlacementHandler placementHandler { get; set; }
|
||||
|
||||
|
@ -55,7 +57,8 @@ private void load(IBindable<WorkingBeatmap> beatmap, IAdjustableClock clock)
|
|||
|
||||
EditorClock = clock;
|
||||
|
||||
ApplyDefaultsToHitObject();
|
||||
startTimeBindable = HitObject.StartTimeBindable.GetBoundCopy();
|
||||
startTimeBindable.BindValueChanged(_ => ApplyDefaultsToHitObject(), true);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in New Issue