From d055d62cebc15e3d86ed7a88354dcc7333bb4a09 Mon Sep 17 00:00:00 2001 From: Lab1 <account@vr.rwth-aachen.de> Date: Fri, 10 Feb 2023 09:33:25 +0100 Subject: [PATCH] avoid bUseVA remaining false if a new session is started and something went wrong in the one before (like starting a second time in Editor while the first try something went wrong with the VA Server) --- Source/VAPlugin/Private/VAPlugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/VAPlugin/Private/VAPlugin.cpp b/Source/VAPlugin/Private/VAPlugin.cpp index 87eeda9..8913999 100644 --- a/Source/VAPlugin/Private/VAPlugin.cpp +++ b/Source/VAPlugin/Private/VAPlugin.cpp @@ -1237,8 +1237,8 @@ void FVAPlugin::SetScale(const float ScaleN) void FVAPlugin::SetUseVA(const bool bUseVAN) { - // VA cannot be activated once it was deactivated - if(bUseVA == false || bUseVA == bUseVAN) + // VA cannot be activated once it was deactivated (we need to check bPluginInitialized because we can reset it on beginning a new session) + if((bUseVA == false && bPluginInitialized) || bUseVA == bUseVAN) { return; } -- GitLab