Skip to content
Snippets Groups Projects
Commit 8de71fd3 authored by Sebastian Pape's avatar Sebastian Pape
Browse files

Changed HMD mode check again

parent db15a51d
No related branches found
No related tags found
1 merge request!4Develop
...@@ -136,10 +136,8 @@ void ACAVEOverlayController::BeginPlay() ...@@ -136,10 +136,8 @@ void ACAVEOverlayController::BeginPlay()
//Read situation //Read situation
hmd_mode_ = GEngine->XRSystem.IsValid() && GEngine->XRSystem->IsHeadTrackingAllowed(); hmd_mode_ = GEngine->XRSystem.IsValid() && GEngine->XRSystem->IsHeadTrackingAllowed();
display_cluster_mode_ = IDisplayCluster::Get().GetOperationMode() == EDisplayClusterOperationMode::Cluster; display_cluster_mode_ = IDisplayCluster::Get().GetOperationMode() == EDisplayClusterOperationMode::Cluster;
//TODO: Remove. Only Debugging
UE_LOG(CAVEOverlayLog, Log, TEXT("HMD: %d, DisplayCluster %d"), hmd_mode_, display_cluster_mode_);
if ((hmd_mode_ && !display_cluster_mode_) || !display_cluster_mode_) return; // Not our business if (!display_cluster_mode_) return; // Not our business
//Actor config //Actor config
InputComponent->BindAction("DisplayClusterAction1", EInputEvent::IE_Pressed, this, &ACAVEOverlayController::CycleDoorType); InputComponent->BindAction("DisplayClusterAction1", EInputEvent::IE_Pressed, this, &ACAVEOverlayController::CycleDoorType);
...@@ -191,7 +189,7 @@ void ACAVEOverlayController::Tick(float DeltaTime) ...@@ -191,7 +189,7 @@ void ACAVEOverlayController::Tick(float DeltaTime)
{ {
Super::Tick(DeltaTime); Super::Tick(DeltaTime);
if ((hmd_mode_ && !display_cluster_mode_) || !display_cluster_mode_) return; // Not our business if (!display_cluster_mode_) return; // Not our business
refreshPawnComponents(); refreshPawnComponents();
if (!cave_origin_ || !shutter_glasses_) return; //Display Cluster not initialized if (!cave_origin_ || !shutter_glasses_) return; //Display Cluster not initialized
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment