mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 13:22:55 +08:00
Add a flimsy guard against null parent to avoid crashes on exit sequence
This commit is contained in:
parent
d55f42dc2e
commit
df77b28b48
@ -172,6 +172,9 @@ namespace osu.Game.Skinning.Editor
|
||||
{
|
||||
base.Update();
|
||||
|
||||
if (drawable.Parent == null)
|
||||
return;
|
||||
|
||||
originBox.Position = drawable.ToSpaceOfOtherDrawable(drawable.OriginPosition, this);
|
||||
anchorBox.Position = drawable.Parent.ToSpaceOfOtherDrawable(drawable.AnchorPosition, this);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user