remove the hardcoded SG_HAND_MESH_YAW_CORRECTION_OFFSET and rely on FVirtualHandTrackingSettings::RootBoneRotationCorrection
This commit is contained in:
@@ -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",
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user