From d0ed0a55dfb6f9a2ca72fc59663734fa06d86d4f Mon Sep 17 00:00:00 2001 From: Mamadou Babaei Date: Tue, 25 Apr 2023 10:43:51 +0200 Subject: [PATCH] fix debug gizmo default colors --- .../SenseGlove/Components/SGWristTrackerComponent.cpp | 6 +++--- .../Private/SGSettings/SGSettings.cpp | 10 +++++----- .../Public/SGSettings/SGDebugGizmoSettings.h | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Source/SenseGlove/Private/SenseGlove/Components/SGWristTrackerComponent.cpp b/Source/SenseGlove/Private/SenseGlove/Components/SGWristTrackerComponent.cpp index 89ceed29..43ac4bcb 100644 --- a/Source/SenseGlove/Private/SenseGlove/Components/SGWristTrackerComponent.cpp +++ b/Source/SenseGlove/Private/SenseGlove/Components/SGWristTrackerComponent.cpp @@ -118,9 +118,9 @@ USGWristTrackerComponent::USGWristTrackerComponent(const FObjectInitializer& Obj bDrawWristTrackerDebugGizmo = false; WristTrackerDebugGizmoSettings = FSGDebugGizmoSettings( 4.0f, 1.0f, - FColor(1.0f, 0.0f, 0.0f, 1.0f), - FColor(0.0f, 1.0f, 0.0f, 1.0f), - FColor(0.0f, 0.0f, 1.0f, 1.0f), + FColor(255, 0, 0, 255), + FColor(0, 255, 0, 255), + FColor(0, 0, 255, 255), false, 1.1f, 0 ); bDrawWristTrackerDebugGizmo = false; diff --git a/Source/SenseGloveSettings/Private/SGSettings/SGSettings.cpp b/Source/SenseGloveSettings/Private/SGSettings/SGSettings.cpp index 87caccb1..cf39c8fe 100644 --- a/Source/SenseGloveSettings/Private/SGSettings/SGSettings.cpp +++ b/Source/SenseGloveSettings/Private/SGSettings/SGSettings.cpp @@ -94,11 +94,11 @@ USGSettings::USGSettings() bDrawWristTrackerDebugGizmo = false; WristTrackerDebugGizmoSettings = FSGDebugGizmoSettings( - 4.0f, 1.0f, - FColor(1.0f, 0.0f, 0.0f, 1.0f), - FColor(0.0f, 1.0f, 0.0f, 1.0f), - FColor(0.0f, 0.0f, 1.0f, 1.0f), - false, 1.1f, 0 + 4.0f, 1.0f, + FColor(255, 0, 0, 255), + FColor(0, 255, 0, 255), + FColor(0, 0, 255, 255), + false, 1.1f, 0 ); } diff --git a/Source/SenseGloveSettings/Public/SGSettings/SGDebugGizmoSettings.h b/Source/SenseGloveSettings/Public/SGSettings/SGDebugGizmoSettings.h index 921364a6..47a42ef2 100644 --- a/Source/SenseGloveSettings/Public/SGSettings/SGDebugGizmoSettings.h +++ b/Source/SenseGloveSettings/Public/SGSettings/SGDebugGizmoSettings.h @@ -72,9 +72,9 @@ public: public: explicit FSGDebugGizmoSettings(float InLength = 1.0f, float InThickness = 1.0f, - const FColor& InXAxisColor = FColor(1.0f, 0.0f, 0.0f, 1.0f), - const FColor& InYAxisColor = FColor(0.0f, 1.0f, 0.0f, 1.0f), - const FColor& InZAxisColor = FColor(0.0f, 0.0f, 1.0f, 1.0f), + const FColor& InXAxisColor = FColor(255, 0, 0, 255), + const FColor& InYAxisColor = FColor(0, 255, 0, 255), + const FColor& InZAxisColor = FColor(0, 0, 255, 255), bool bInPersistentLines = false, float InLifeTimeModifier = 1.1f, uint8 InDepthPriority = 0);