From ef9c937e9bceb1e8396900b9aaa8088c1725aa12 Mon Sep 17 00:00:00 2001 From: Daniel Rupp <daniel.rupp@rwth-aachen.de> Date: Tue, 2 Jul 2024 15:07:57 +0200 Subject: [PATCH] feature(scaling): removes custom scaling of cave actor, actor should already be scaled due to attachment --- .../Private/Pawn/Navigation/ScalingComponent.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Source/RWTHVRToolkit/Private/Pawn/Navigation/ScalingComponent.cpp b/Source/RWTHVRToolkit/Private/Pawn/Navigation/ScalingComponent.cpp index 74eaa79..ddc0bb3 100644 --- a/Source/RWTHVRToolkit/Private/Pawn/Navigation/ScalingComponent.cpp +++ b/Source/RWTHVRToolkit/Private/Pawn/Navigation/ScalingComponent.cpp @@ -87,7 +87,7 @@ void UScalingComponent::BeginPlay() // in case of cave, also at this to the equal sized components if(VRPawn->CaveSetupActor) { - UE_LOG(LogTemp,Display,TEXT("Cave Setup Actor is valid and will be added to equal Sized objects")) + //UE_LOG(LogTemp,Display,TEXT("Cave Setup Actor is valid and will be added to equal Sized objects")) //AddEqualSizedActor(VRPawn->CaveSetupActor); } else { @@ -248,14 +248,6 @@ void UScalingComponent::AdjustEqualSizedWorldObjects(float ScaleRatio) CurrActor->SetActorScale3D(CurrentScaling * ScaleRatio); } - if(VRPawn->CaveSetupActor) - { - - UE_LOG(LogTemp,Display,TEXT("Adjust Equal Sized World Objects: cave setup is scaled manually")) - FVector CurrentScaling = VRPawn->CaveSetupActor->GetActorScale3D(); - VRPawn->CaveSetupActor->SetActorScale3D(CurrentScaling * ScaleRatio); - } - // adjust scene components for (USceneComponent* CurrComponent : EqualSizedSceneComponents) { -- GitLab