Skip to content
Snippets Groups Projects
Commit d055d62c authored by Lab1's avatar Lab1
Browse files

avoid bUseVA remaining false if a new session is started and something went...

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)
parent f0490818
No related branches found
No related tags found
No related merge requests found
...@@ -1237,8 +1237,8 @@ void FVAPlugin::SetScale(const float ScaleN) ...@@ -1237,8 +1237,8 @@ void FVAPlugin::SetScale(const float ScaleN)
void FVAPlugin::SetUseVA(const bool bUseVAN) void FVAPlugin::SetUseVA(const bool bUseVAN)
{ {
// VA cannot be activated once it was deactivated // 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 || bUseVA == bUseVAN) if((bUseVA == false && bPluginInitialized) || bUseVA == bUseVAN)
{ {
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment