Skip to content

Commit 9db92fa

Browse files
committed
fix: bug causing inPlaneSlice X axis to be reversed when hovering
1 parent 0b5ab82 commit 9db92fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/Scripts/Pinpoint/TP_InPlaneSlice.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ private Vector3 CalculateInPlanePosition(Vector2 pointerData)
179179
// We get the center index, then add the x position * the left vector, then add the y position * the up vector
180180
// remember that for the probe, up = backward, and left = left
181181
Vector3 inPlanePosition = recRegionCenterIdx +
182-
(BrainAtlasManager.ActiveReferenceAtlas.World2Atlas_Vector(-rightWorldU) * -inPlanePosNorm.x +
182+
(BrainAtlasManager.ActiveReferenceAtlas.World2Atlas_Vector(-rightWorldU) * inPlanePosNorm.x +
183183
BrainAtlasManager.ActiveReferenceAtlas.World2Atlas_Vector(-forwardWorldU) * inPlanePosNorm.y);
184184
return inPlanePosition;
185185
}

0 commit comments

Comments
 (0)