Add a flimsy guard against null parent to avoid crashes on exit sequence

This commit is contained in:
Dean Herbert
2021-05-13 18:39:21 +09:00
parent d55f42dc2e
commit df77b28b48

View File

@ -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);