1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 12:17:26 +08:00

Make DrawableRepeatPoints show up when replayed

Fixes #1458
This commit is contained in:
smoogipoo 2017-11-03 15:30:46 +09:00
parent 70ea3e5025
commit 06a62edeb6

View File

@ -18,13 +18,16 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
public double FadeInTime;
public double FadeOutTime;
public override bool RemoveWhenNotAlive => false;
public DrawableRepeatPoint(RepeatPoint repeatPoint, DrawableSlider drawableSlider) : base(repeatPoint)
public DrawableRepeatPoint(RepeatPoint repeatPoint, DrawableSlider drawableSlider)
: base(repeatPoint)
{
this.repeatPoint = repeatPoint;
this.drawableSlider = drawableSlider;
// The containing DrawableSlider is updated before us and clears our transforms, so we need to be
// present to get updated and have UpdateState correctly called when rewinding.
AlwaysPresent = true;
AutoSizeAxes = Axes.Both;
Blending = BlendingMode.Additive;
Origin = Anchor.Centre;