Skip to content

Commit

Permalink
Capture the pointerRot after we've snapped to the stencil
Browse files Browse the repository at this point in the history
[CI BUILD]
  • Loading branch information
andybak committed Mar 30, 2023
1 parent ab15e80 commit a787d86
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Assets/Scripts/Tools/FreePaintTool.cs
Expand Up @@ -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);
Expand Down

0 comments on commit a787d86

Please sign in to comment.