diff --git a/Source/SenseGloveTracking/Private/SGTracking/SGGloveTracker.cpp b/Source/SenseGloveTracking/Private/SGTracking/SGGloveTracker.cpp index 374adb74..aa03246b 100644 --- a/Source/SenseGloveTracking/Private/SGTracking/SGGloveTracker.cpp +++ b/Source/SenseGloveTracking/Private/SGTracking/SGGloveTracker.cpp @@ -41,7 +41,9 @@ #include "Engine/Engine.h" #include "Engine/TimerHandle.h" #include "Engine/World.h" +#if WITH_EDITOR #include "Subsystems/UnrealEditorSubsystem.h" +#endif /* WITH_EDITOR */ #include "TimerManager.h" #include "SGBackend/SGBackend.h" diff --git a/Source/SenseGloveTracking/Private/SGTracking/SGXRTracker.cpp b/Source/SenseGloveTracking/Private/SGTracking/SGXRTracker.cpp index 6016af39..58076eaa 100644 --- a/Source/SenseGloveTracking/Private/SGTracking/SGXRTracker.cpp +++ b/Source/SenseGloveTracking/Private/SGTracking/SGXRTracker.cpp @@ -48,7 +48,9 @@ #include "OpenXRCore.h" #include "OpenXRHMD/Private/OpenXRHMD.h" #include "Runtime/Launch/Resources/Version.h" +#if WITH_EDITOR #include "Subsystems/UnrealEditorSubsystem.h" +#endif /* WITH_EDITOR */ #include "SGBackend/SGBackend.h" #include "SGCore/SGHapticGlove.h" diff --git a/Source/SenseGloveTracking/Private/SenseGloveTrackingModule.cpp b/Source/SenseGloveTracking/Private/SenseGloveTrackingModule.cpp index cfa96f03..22078fa1 100644 --- a/Source/SenseGloveTracking/Private/SenseGloveTrackingModule.cpp +++ b/Source/SenseGloveTracking/Private/SenseGloveTrackingModule.cpp @@ -35,6 +35,8 @@ #include "SenseGloveTrackingModule.h" +#include "Framework/Application/SlateApplication.h" + #include "SGLog/SGLog.h" #include "SGTracking/SGXRTracker.h"