Fix missing UI Control preview when changing UI Widget type

This commit is contained in:
Wojtek Figat
2024-04-17 16:43:53 +02:00
parent 261faad93e
commit d379b4c046

View File

@@ -115,7 +115,12 @@ namespace FlaxEditor.Viewport.Previews
_hasUILinked = true;
}
else if (_uiControlLinked != null)
{
if (_uiControlLinked.Control != null &&
_uiControlLinked.Control.Parent == null)
_uiControlLinked.Control.Parent = _uiParentLink;
_hasUILinked = true;
}
}
private void LinkCanvas(Actor actor)