From 8d2039c8b49424c43c60bb2e0dfb108163685d7c Mon Sep 17 00:00:00 2001 From: jehret <ehret@vr.rwth-aachen.de> Date: Thu, 4 Jul 2024 13:51:38 +0200 Subject: [PATCH] fix for first frame showing not faded out on cluster --- .../Private/SFGameInstance.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Source/StudyFrameworkPlugin/Private/SFGameInstance.cpp b/Source/StudyFrameworkPlugin/Private/SFGameInstance.cpp index 3e74521..18e3375 100644 --- a/Source/StudyFrameworkPlugin/Private/SFGameInstance.cpp +++ b/Source/StudyFrameworkPlugin/Private/SFGameInstance.cpp @@ -376,6 +376,13 @@ void USFGameInstance::PrepareWithStudySetup(ASFStudySetup* Setup) PrepareWithStudySetupAllNodes(ParticipantSequenceNumber, ParticipantID, bRecoverParticipantData); } } + + //this needs to be done directly to not have one frame at the beginning which is not faded out! + if (IsInitialized()) + { + InitFadeHandler(StudySetup->FadeConfig); + } + UpdateHUD("Wait for Start"); } //Continue / Next Participant / Restart Study @@ -433,13 +440,7 @@ void USFGameInstance::PrepareWithStudySetupAllNodes(int NewParticipantSequenceNu } } } - - - if (IsInitialized()) - { - InitFadeHandler(StudySetup->FadeConfig); - } - UpdateHUD("Wait for Start"); + } void USFGameInstance::PreloadAllMaps(const TArray<USFCondition*>& Conditions) -- GitLab