1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 04:12:57 +08:00

Merge pull request #9088 from peppy/fix-placement-default-application

Fix defaults not being applied correctly to blueprints after StartTime is changed
This commit is contained in:
Dan Balasescu 2020-05-25 14:46:19 +09:00 committed by GitHub
commit 4e84d1394d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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>