Skip to content

Commit 07a59e4

Browse files
committed
fix(Pointer): set object interactor scale correctly on renderer
The object interactor renderer was not having the scale set on it but instead it was the whole transform of the script being rescaled which was incorrect.
1 parent 62aa1e0 commit 07a59e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/VRTK/Scripts/Pointers/PointerRenderers/VRTK_BasePointerRenderer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ protected virtual void ScaleObjectInteractor(Vector3 scaleAmount)
549549
{
550550
if (objectInteractor != null)
551551
{
552-
VRTK_SharedMethods.SetGlobalScale(transform, scaleAmount);
552+
VRTK_SharedMethods.SetGlobalScale(objectInteractor.transform, scaleAmount);
553553
}
554554
}
555555

0 commit comments

Comments
 (0)