From f1aab92d6a224be9c809bb65b7c6aa187f2eebf2 Mon Sep 17 00:00:00 2001 From: Rye Mutt <rye@alchemyviewer.org> Date: Wed, 11 Aug 2021 00:25:08 -0400 Subject: [PATCH] Fix bug in mouse steering yaw calculation --- indra/newview/lltoolpie.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/lltoolpie.cpp b/indra/newview/lltoolpie.cpp index 759416a5a1b..c2d5479cb91 100644 --- a/indra/newview/lltoolpie.cpp +++ b/indra/newview/lltoolpie.cpp @@ -2190,7 +2190,7 @@ void LLToolPie::steerCameraWithMouse(S32 x, S32 y) { old_yaw_angle = F_PI_BY_TWO + asinf(pick_distance_from_rotation_center / camera_distance_from_rotation_center); - if (mouse_ray * rotation_frame.getLeftAxis() < 0.f) + if (old_mouse_ray * rotation_frame.getLeftAxis() < 0.f) { old_yaw_angle *= -1.f; } -- GitLab