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

fixed lens connectors not updating correctly

parent ea6a6a6d
No related branches found
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
No preview for this file type
......@@ -48,7 +48,7 @@ AOptiXPlayerCameraManager::AOptiXPlayerCameraManager(const FObjectInitializer& O
{
UE_LOG(OptiXPluginCameraActor, Display, TEXT("Optix Camera Manager Constructor!"));
SceneCaptureComponent = ObjectInitializer.CreateAbstractDefaultSubobject<USceneCaptureComponent2D>(this, TEXT("SceneCaptureComponent0"));
SceneCaptureComponent = ObjectInitializer.CreateDefaultSubobject<USceneCaptureComponent2D>(this, TEXT("SceneCaptureComponent0"));
RootComponent = SceneCaptureComponent;
SceneCaptureComponent->bCaptureEveryFrame = false;
SceneCaptureComponent->bCaptureOnMovement = false;
......@@ -59,14 +59,14 @@ AOptiXPlayerCameraManager::AOptiXPlayerCameraManager(const FObjectInitializer& O
//SceneCaptureComponent->HideActorComponents(UGameplayStatics::GetPlayerController(GetWorld(), 0));
//SceneCaptureComponent->HideActorComponents(UGameplayStatics::GetPlayerPawn(GetWorld(), 0));
SceneCaptureCubeComponent = ObjectInitializer.CreateAbstractDefaultSubobject<USceneCaptureComponentCube>(this, TEXT("SceneCaptureComponentCube0"));
SceneCaptureCubeComponent = ObjectInitializer.CreateDefaultSubobject<USceneCaptureComponentCube>(this, TEXT("SceneCaptureComponentCube0"));
SceneCaptureCubeComponent->SetupAttachment(SceneCaptureComponent);
SceneCaptureCubeComponent->bCaptureEveryFrame = false;
SceneCaptureCubeComponent->bCaptureOnMovement = false;
SceneCaptureCubeComponent->HideActorComponents(this);
PostProcessComponent = ObjectInitializer.CreateAbstractDefaultSubobject<UPostProcessComponent>(this, TEXT("PostProcessComponent0"));
PostProcessComponent = ObjectInitializer.CreateDefaultSubobject<UPostProcessComponent>(this, TEXT("PostProcessComponent0"));
PostProcessComponent->SetupAttachment(SceneCaptureCubeComponent); // Doesn't matter anyway
PostProcessComponent->bUnbound = true; // Should be default anyway
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment