From e2ce23e83cf7381b85c79f7c31c9954f081e0825 Mon Sep 17 00:00:00 2001 From: Mamadou Babaei Date: Thu, 23 Feb 2023 23:36:10 +0100 Subject: [PATCH] add quat template specialization to the sglog module --- Source/SenseGloveLog/Public/SGLog/SGLog.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Source/SenseGloveLog/Public/SGLog/SGLog.h b/Source/SenseGloveLog/Public/SGLog/SGLog.h index aa0cd8ed..a69d4551 100644 --- a/Source/SenseGloveLog/Public/SGLog/SGLog.h +++ b/Source/SenseGloveLog/Public/SGLog/SGLog.h @@ -248,6 +248,24 @@ struct TFSGLogString } }; +template<> +struct TFSGLogString +{ + static void Format(const FQuat& Value, FString& OutString) + { + OutString = FString::Printf(TEXT("%s"), Value.ToString().GetCharArray().GetData()); + } +}; + +template<> +struct TFSGLogString +{ + static void Format(const FQuat& Value, FString& OutString) + { + OutString = FString::Printf(TEXT("%s"), Value.ToString().GetCharArray().GetData()); + } +}; + template<> struct TFSGLogString {