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;