Skip to content
Snippets Groups Projects

Pull dev/5.4 changes into dev/5.5

Merged David Gilbert requested to merge dev/5.4 into dev/5.5
1 file
+ 7
3
Compare changes
  • Side-by-side
  • Inline
@@ -122,14 +122,18 @@ void ARWTHVRPawn::SetupPlayerInputComponent(UInputComponent* PlayerInputComponen
@@ -122,14 +122,18 @@ void ARWTHVRPawn::SetupPlayerInputComponent(UInputComponent* PlayerInputComponen
if (ARWTHVRPlayerState* State = GetPlayerState<ARWTHVRPlayerState>())
if (ARWTHVRPlayerState* State = GetPlayerState<ARWTHVRPlayerState>())
{
{
// Might not be properly synced yet?
// Might not be properly synced yet?
const EPlayerType Type = State->GetPlayerType();
EPlayerType Type = State->GetPlayerType();
// Don't do anything with the type if it's been set to clustertype or anything.
// Don't do anything with the type if it's been set to clustertype or anything.
// This is already being done when connecting to the server.
// This is already being done when connecting to the server.
const bool bClusterType = Type == EPlayerType::nDisplayPrimary || Type == EPlayerType::nDisplaySecondary;
const bool bClusterType = Type == EPlayerType::nDisplayPrimary || Type == EPlayerType::nDisplaySecondary;
if (!bClusterType && URWTHVRUtilities::IsHeadMountedMode())
if (!bClusterType)
{
{
 
if (URWTHVRUtilities::IsHeadMountedMode())
 
Type = EPlayerType::HMD;
 
 
UE_LOGFMT(Toolkit, Display, "Pawn: Requesting Player Type {T}...", StaticCast<int8>(Type));
// Could be too early to call this RPC...
// Could be too early to call this RPC...
State->RequestSetPlayerType(Type);
State->RequestSetPlayerType(Type);
}
}
Loading