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

fix(cave): Tries AddComponentByClass in the hopes of preventing further nullptr exceptions

parent 3c7b2005
No related branches found
No related tags found
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 #355671 passed
...@@ -50,11 +50,10 @@ void ARWTHVRPawn::BeginPlay() ...@@ -50,11 +50,10 @@ 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>(this);
// SyncComponent->SetupAttachment(RootComponent);
SyncComponent->RegisterComponent();
SyncComponent->AttachToComponent(RootComponent, FAttachmentTransformRules::SnapToTargetNotIncludingScale); SyncComponent = Cast<USceneComponent>(AddComponentByClass(UDisplayClusterSceneComponentSyncParent::StaticClass(),
false, FTransform::Identity, false));
AddInstanceComponent(SyncComponent);
#endif #endif
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment