mirror of
https://github.com/osukey/osukey.git
synced 2025-07-30 22:55:30 +09:00
Fix unsafe manipulation of parent's children from child
This commit is contained in:
@ -145,11 +145,19 @@ namespace osu.Game.Rulesets.Catch.UI
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
trailsTarget.Add(trails = new CatcherTrailDisplay(this));
|
trails = new CatcherTrailDisplay(this);
|
||||||
|
|
||||||
updateCatcher();
|
updateCatcher();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void LoadComplete()
|
||||||
|
{
|
||||||
|
base.LoadComplete();
|
||||||
|
|
||||||
|
// don't add in above load as we may potentially modify a parent in an unsafe manner.
|
||||||
|
trailsTarget.Add(trails);
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Creates proxied content to be displayed beneath hitobjects.
|
/// Creates proxied content to be displayed beneath hitobjects.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Reference in New Issue
Block a user