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

fix(cave): RegisterComponent now doesn't throw a nullptr anymore because...

fix(cave): RegisterComponent now doesn't throw a nullptr anymore because SyncComponent was added as transient
parent b7c949bf
Branches
Tags
2 merge requests!85UE5.3-2023.1-rc3,!79Plugin Separation: Move the RWTHVRCluster Module into its own Plugin with respective content. Removes Toolkit dependency to nDisplay
Pipeline #355660 passed
...@@ -50,9 +50,11 @@ void ARWTHVRPawn::BeginPlay() ...@@ -50,9 +50,11 @@ void ARWTHVRPawn::BeginPlay()
// This is required because for collision based movement, it can happen that the physics engine // This is required because for collision based movement, it can happen that the physics engine
// for some reason acts different on the nodes, therefore leading to a potential desync when // for some reason acts different on the nodes, therefore leading to a potential desync when
// e.g. colliding with an object while moving. // e.g. colliding with an object while moving.
SyncComponent = NewObject<UDisplayClusterSceneComponentSyncParent>(); SyncComponent = NewObject<UDisplayClusterSceneComponentSyncParent>(this);
SyncComponent->SetupAttachment(RootComponent); // SyncComponent->SetupAttachment(RootComponent);
SyncComponent->RegisterComponent(); SyncComponent->RegisterComponent();
SyncComponent->AttachToComponent(RootComponent, FAttachmentTransformRules::SnapToTargetNotIncludingScale);
#endif #endif
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment