From a787d86189ea2abab8e4b88b7c7ae056a43e058b Mon Sep 17 00:00:00 2001 From: Andy Baker Date: Thu, 30 Mar 2023 14:54:02 +0100 Subject: [PATCH] Capture the pointerRot after we've snapped to the stencil [CI BUILD] --- Assets/Scripts/Tools/FreePaintTool.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/Tools/FreePaintTool.cs b/Assets/Scripts/Tools/FreePaintTool.cs index 447e4bcc52..88bdfb2a82 100644 --- a/Assets/Scripts/Tools/FreePaintTool.cs +++ b/Assets/Scripts/Tools/FreePaintTool.cs @@ -240,11 +240,13 @@ void PositionPointer() { // Angle the pointer according to the user-defined pointer angle. (Vector3 pos_GS, Quaternion rot_GS) = GetPointerPosition(); - Quaternion pointerRot = rot_GS; // Modify pointer position and rotation with stencils. WidgetManager.m_Instance.MagnetizeToStencils(ref pos_GS, ref rot_GS); + // Deciding where to capture this makes a big difference to the output + Quaternion pointerRot = rot_GS; + if (m_BimanualTape) { ApplyBimanualTape(ref pos_GS, ref rot_GS);