From c6504c4f2d016e4e16cd6792198dec1244bb8a13 Mon Sep 17 00:00:00 2001 From: David Gilbert <gilbert@vr.rwth-aachen.de> Date: Thu, 16 Nov 2023 10:11:49 +0100 Subject: [PATCH] fix(pawn, replication): Fixes an issue with Camera and RightHand Transforms being overwritten locally for none-locally controlled pawns. --- Source/RWTHVRToolkit/Private/Pawn/VirtualRealityPawn.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/RWTHVRToolkit/Private/Pawn/VirtualRealityPawn.cpp b/Source/RWTHVRToolkit/Private/Pawn/VirtualRealityPawn.cpp index 786ffc35..432489a8 100644 --- a/Source/RWTHVRToolkit/Private/Pawn/VirtualRealityPawn.cpp +++ b/Source/RWTHVRToolkit/Private/Pawn/VirtualRealityPawn.cpp @@ -42,7 +42,7 @@ void AVirtualRealityPawn::Tick(float DeltaSeconds) { Super::Tick(DeltaSeconds); - if (UVirtualRealityUtilities::IsDesktopMode()) + if (UVirtualRealityUtilities::IsDesktopMode() && IsLocallyControlled()) { SetCameraOffset(); UpdateRightHandForDesktopInteraction(); @@ -136,7 +136,6 @@ void AVirtualRealityPawn::EvaluateLivelink() const return; } - // Get the LiveLink interface and evaluate the current existing frame data for the given Subject and Role. ILiveLinkClient& LiveLinkClient = IModularFeatures::Get().GetModularFeature<ILiveLinkClient>( ILiveLinkClient::ModularFeatureName); -- GitLab