From b5d841ffc93596c0aff623f1a56868feeb65a838 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Thu, 12 Mar 2026 11:06:42 +0100 Subject: [PATCH] Use total rotation from #3758 in #3760 --- Source/Editor/Gizmo/UIEditorGizmo.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Editor/Gizmo/UIEditorGizmo.cs b/Source/Editor/Gizmo/UIEditorGizmo.cs index 3d0bc022b..61109556c 100644 --- a/Source/Editor/Gizmo/UIEditorGizmo.cs +++ b/Source/Editor/Gizmo/UIEditorGizmo.cs @@ -401,7 +401,7 @@ namespace FlaxEditor var uiControlDelta = GetControlDelta(control, ref _mouseMovesPos, ref moveLocation); // Transform delta to control local space - var rotation = control.Rotation * Mathf.DegreesToRadians; // TODO: use total parent rotation + var rotation = GetTotalRotation(control) * Mathf.DegreesToRadians; var cos = Mathf.Cos(rotation); var sin = Mathf.Sin(rotation); var localDeltaX = uiControlDelta.X * cos + uiControlDelta.Y * sin;