File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Source/SpaceMouseEditor/Private/SpaceMouseEditor/Interactors Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ namespace SpaceMouse::Editor::Interactor
5252 case LVT_OrthoXY:
5353 {
5454 currRot = FRotationMatrix::MakeFromX ({0 , 0 , -1 }).Rotator ();
55- #if UE_VERSION_OLDER_THAN(5, 6, 0 )
55+ #if UNREAL_VERSION(<, 5, 6 )
5656 currRot = FRotator (currRot.Quaternion () * FRotator (0 , 0 , -90 ).Quaternion ());
5757#else
5858 currRot = FRotator (currRot.Quaternion () * FRotator (0 , 0 , -180 ).Quaternion ());
@@ -69,7 +69,7 @@ namespace SpaceMouse::Editor::Interactor
6969 case LVT_OrthoNegativeXY:
7070 {
7171 currRot = FRotationMatrix::MakeFromX ({0 , 0 , 1 }).Rotator ();
72- #if UE_VERSION_OLDER_THAN(5, 6, 0 )
72+ #if UNREAL_VERSION(<, 5, 6 )
7373 currRot = FRotator (currRot.Quaternion () * FRotator (0 , 0 , 90 ).Quaternion ());
7474#else
7575 currRot = FRotator (currRot.Quaternion () * FRotator (0 , 0 , 180 ).Quaternion ());
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ namespace SpaceMouse::Editor::Interactor
161161
162162 void FViewportInteraction::ResetSpeed ()
163163 {
164- #if UE_VERSION_NEWER_THAN_OR_EQUAL(5, 7, 0 )
164+ #if UNREAL_VERSION(>=, 5, 7 )
165165 ActiveViewportClient->SetCameraSpeedSettings ({1.0 });
166166#else
167167 ActiveViewportClient->SetCameraSpeedSetting (4 );
@@ -172,7 +172,7 @@ namespace SpaceMouse::Editor::Interactor
172172 {
173173 if (!ActiveViewportClient.Get ()) return ;
174174
175- #if UE_VERSION_NEWER_THAN_OR_EQUAL(5, 7, 0 )
175+ #if UNREAL_VERSION(>=, 5, 7 )
176176 FEditorViewportCameraSpeedSettings speedSettings = ActiveViewportClient->GetCameraSpeedSettings ();
177177 const float speed = speedSettings.GetCurrentSpeed ();
178178 speedSettings.SetCurrentSpeed (deltaCoeff < 0
You can’t perform that action at this time.
0 commit comments