From 34859a476012ca6895a4e0216ff06f85f48a074f Mon Sep 17 00:00:00 2001 From: smoogipoo Date: Thu, 15 Apr 2021 23:37:05 +0900 Subject: [PATCH] Invalidate drawnode on change --- osu.Game.Rulesets.Osu/UI/Cursor/CursorTrail.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/osu.Game.Rulesets.Osu/UI/Cursor/CursorTrail.cs b/osu.Game.Rulesets.Osu/UI/Cursor/CursorTrail.cs index b55575696e..7f86e9daf7 100644 --- a/osu.Game.Rulesets.Osu/UI/Cursor/CursorTrail.cs +++ b/osu.Game.Rulesets.Osu/UI/Cursor/CursorTrail.cs @@ -32,7 +32,17 @@ public class CursorTrail : Drawable, IRequireHighFrequencyMousePosition private double timeOffset; private float time; - protected Anchor TrailOrigin = Anchor.Centre; + private Anchor trailOrigin = Anchor.Centre; + + protected Anchor TrailOrigin + { + get => trailOrigin; + set + { + trailOrigin = value; + Invalidate(Invalidation.DrawNode); + } + } public CursorTrail() {