Skip to content
Snippets Groups Projects
Commit 8bb2a43d authored by David Gilbert's avatar David Gilbert :bug:
Browse files

fix(cave): Fixes an issues with DCRA attachment to pawn, a bracket was at the wrong place.

parent 807b1a54
No related branches found
No related tags found
No related merge requests found
......@@ -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
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment