Only take initial judgement position from object instead of following

Looks less bad with mods like depth active.

Co-authored-by: Dean Herbert <pe@ppy.sh>
This commit is contained in:
Bartłomiej Dach 2024-05-30 09:03:02 +02:00
parent a6c776dac8
commit 8916f08f86
No known key found for this signature in database
1 changed files with 7 additions and 1 deletions

View File

@ -17,6 +17,8 @@ public partial class DrawableOsuJudgement : DrawableJudgement
[Resolved]
private OsuConfigManager config { get; set; } = null!;
private bool positionTransferred;
[BackgroundDependencyLoader]
private void load()
{
@ -36,16 +38,20 @@ protected override void PrepareForUse()
Lighting.ResetAnimation();
Lighting.SetColourFrom(JudgedObject, Result);
positionTransferred = false;
}
protected override void Update()
{
base.Update();
if (JudgedObject is DrawableOsuHitObject osuObject && JudgedObject.IsInUse)
if (!positionTransferred && JudgedObject is DrawableOsuHitObject osuObject && JudgedObject.IsInUse)
{
Position = osuObject.ToSpaceOfOtherDrawable(osuObject.OriginPosition, Parent!);
Scale = new Vector2(osuObject.HitObject.Scale);
positionTransferred = true;
}
}