diff --git a/Handbook/src/appendix/changelog.md b/Handbook/src/appendix/changelog.md index 2d00a797..0a4fabc7 100644 --- a/Handbook/src/appendix/changelog.md +++ b/Handbook/src/appendix/changelog.md @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Removed - Cleaned up remnants of the long-removed Unreal Engine `5.2` from third-party module `*.Build.cs` files. +- Cleaned up remnants of the long-removed Unreal Engine `5.2` from `SenseGloveTracking` module. ## [2.6.3] - 2025-06-27 diff --git a/Source/SenseGloveTracking/Private/SGTracking/SGXRTracker.cpp b/Source/SenseGloveTracking/Private/SGTracking/SGXRTracker.cpp index 00c7246c..fc4bf12f 100644 --- a/Source/SenseGloveTracking/Private/SGTracking/SGXRTracker.cpp +++ b/Source/SenseGloveTracking/Private/SGTracking/SGXRTracker.cpp @@ -1747,10 +1747,6 @@ bool FSGXRTracker::GetControllerOrientationAndPosition(const int32 ControllerInd return false; } -#if ENGINE_MAJOR_VERSION >= 5 && ENGINE_MINOR_VERSION <= 2 - const FName& MotionSource{FImpl::GetControllerHandEnumName(DeviceHand)}; -#endif /* ENGINE_MAJOR_VERSION >= 5 && ENGINE_MINOR_VERSION <= 2 */ - FTransform ControllerTransform; bool bMotionSourceHandTracking; const bool bGotTransform = Pimpl->GetControllerTransform(MotionSource, WorldToMetersScale, @@ -1770,10 +1766,6 @@ ETrackingStatus FSGXRTracker::GetControllerTrackingStatus(const int32 Controller return ETrackingStatus::NotTracked; } -#if ENGINE_MAJOR_VERSION >= 5 && ENGINE_MINOR_VERSION <= 2 - const FName& MotionSource{FImpl::GetControllerHandEnumName(DeviceHand)}; -#endif /* ENGINE_MAJOR_VERSION >= 5 && ENGINE_MINOR_VERSION <= 2 */ - const FImpl::FSGMotionSourceInfo* KeyPointInfoPtr{Pimpl->MotionSourceToKeypointMap.Find(MotionSource)}; if (!KeyPointInfoPtr) {