Fix check for control parent.

This commit is contained in:
Chandler Cox
2025-01-25 15:32:18 -06:00
parent eb43d4813d
commit 4598cdb2d0

View File

@@ -342,7 +342,7 @@ namespace FlaxEditor.Viewport
{
UICanvas canvas = null;
var controlParent = control.Parent;
while (controlParent != null || controlParent is Scene)
while (controlParent != null || controlParent is not Scene)
{
if (controlParent is UICanvas uiCanvas)
{