diff --git a/Source/RWTHVRToolkit/Private/Pawn/VirtualRealityPawn.cpp b/Source/RWTHVRToolkit/Private/Pawn/VirtualRealityPawn.cpp index 28309ec37d32fd6759763f1d32e498efd88159c9..786ffc3534f2b73d54b77d406a4e660eb8edae1f 100644 --- a/Source/RWTHVRToolkit/Private/Pawn/VirtualRealityPawn.cpp +++ b/Source/RWTHVRToolkit/Private/Pawn/VirtualRealityPawn.cpp @@ -64,8 +64,8 @@ void AVirtualRealityPawn::NotifyControllerChanged() if (IsLocallyControlled()) { // Only do this for the primary node or when we're running in standalone - if (UVirtualRealityUtilities::IsRoomMountedMode() && (UVirtualRealityUtilities::IsPrimaryNode() || GetNetMode()) - == NM_Standalone) + if (UVirtualRealityUtilities::IsRoomMountedMode() && (UVirtualRealityUtilities::IsPrimaryNode() || + GetNetMode() == NM_Standalone)) { // If we are also the authority (standalone or listen server), directly attach it to us. // If we are not (client), ask the server to do it. @@ -200,6 +200,7 @@ void AVirtualRealityPawn::AttachDCRAtoPawn() FAttachmentTransformRules AttachmentRules = FAttachmentTransformRules::SnapToTargetNotIncludingScale; AttachmentRules.RotationRule = EAttachmentRule::KeepWorld; CaveSetupActor->AttachToActor(this, AttachmentRules); + UE_LOGFMT(Toolkit, Display, "VirtualRealityPawn: Attaching CaveSetup to our pawn!"); } else {