From 4598cdb2d09de7199e8684d993cd2f0df0fd1edf Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Sat, 25 Jan 2025 15:32:18 -0600 Subject: [PATCH] Fix check for control parent. --- Source/Editor/Viewport/MainEditorGizmoViewport.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Editor/Viewport/MainEditorGizmoViewport.cs b/Source/Editor/Viewport/MainEditorGizmoViewport.cs index 6c5844e6a..88f59b0c9 100644 --- a/Source/Editor/Viewport/MainEditorGizmoViewport.cs +++ b/Source/Editor/Viewport/MainEditorGizmoViewport.cs @@ -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) {