remove the hardcoded SG_HAND_MESH_YAW_CORRECTION_OFFSET and rely on FVirtualHandTrackingSettings::RootBoneRotationCorrection

This commit is contained in:
Mamadou Babaei
2024-08-16 16:37:26 +02:00
parent df628d74ed
commit 1b39f7b3d5
3 changed files with 27 additions and 12 deletions
@@ -65,9 +65,15 @@ struct USGSettings::FImpl
USGSettings* USGSettings::GetInstance()
{
if (!ensureAlwaysMsgf(GEngine, TEXT("The engine has not been initialized!")))
/// HACK
// Allow the game module to use the settings system in situations when GEngine is not initialized, yet!
// e.g. from SGPawn's CDO.
if (!GEngine)
{
return nullptr;
USGSettings* StartupInstance{
NewObject<USGSettings>(GetTransientPackage(), FName(TEXT("SGSettings")))
};
return StartupInstance;
}
USGSettings* Instance{GEngine->GetEngineSubsystem<USGSettings>()};
@@ -51,6 +51,7 @@ public class SenseGloveSettings : ModuleRules
"InputCore",
"SenseGloveCore",
"SenseGloveLog",
"SenseGloveSettings",
"SenseGloveTypes",
}
);