mirror of
https://github.com/ppy/osu.git
synced 2025-01-29 02:12:57 +08:00
Merge pull request #7800 from peppy/fix-editor-time-change-display
Fix editor hit objects displaying incorrectly after StartTime change
This commit is contained in:
commit
a9bfe9f7f3
@ -40,6 +40,8 @@ namespace osu.Game.Rulesets.Osu.Edit
|
||||
if (existing == null)
|
||||
return;
|
||||
|
||||
hitObject.RemoveTransform(existing);
|
||||
|
||||
using (hitObject.BeginAbsoluteSequence(existing.StartTime))
|
||||
hitObject.FadeOut(editor_hit_object_fade_out_extension).Expire();
|
||||
break;
|
||||
|
@ -116,7 +116,7 @@ namespace osu.Game.Rulesets.Objects.Drawables
|
||||
HitObject.DefaultsApplied += onDefaultsApplied;
|
||||
|
||||
startTimeBindable = HitObject.StartTimeBindable.GetBoundCopy();
|
||||
startTimeBindable.BindValueChanged(_ => updateState(ArmedState.Idle, true));
|
||||
startTimeBindable.BindValueChanged(_ => updateState(State.Value, true));
|
||||
|
||||
if (HitObject is IHasComboInformation combo)
|
||||
{
|
||||
@ -250,8 +250,8 @@ namespace osu.Game.Rulesets.Objects.Drawables
|
||||
|
||||
double transformTime = HitObject.StartTime - InitialLifetimeOffset;
|
||||
|
||||
base.ApplyTransformsAt(transformTime, true);
|
||||
base.ClearTransformsAfter(transformTime, true);
|
||||
base.ApplyTransformsAt(double.MinValue, true);
|
||||
base.ClearTransformsAfter(double.MinValue, true);
|
||||
|
||||
using (BeginAbsoluteSequence(transformTime, true))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user