From dc166b9246c3ef8a9226e92dcb889d8122daa06c Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Fri, 26 May 2023 09:32:13 +0200 Subject: [PATCH] Fix error when changing avatar in networking --- Runtime/HumanoidControl/Scripts/HumanoidControl.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/HumanoidControl/Scripts/HumanoidControl.cs b/Runtime/HumanoidControl/Scripts/HumanoidControl.cs index e9c6e7d..d5aec28 100644 --- a/Runtime/HumanoidControl/Scripts/HumanoidControl.cs +++ b/Runtime/HumanoidControl/Scripts/HumanoidControl.cs @@ -454,7 +454,7 @@ namespace Passer.Humanoid { avatarNeckHeight = GetAvatarNeckHeight(); #if pUNITYXR - if (headTarget.unityXR != null) + if (isRemote == false && headTarget.unityXR != null) headTarget.unityXR.UpdateSensorLocation(); #endif