From 8aeda537abc29b55e9a611f24a1c8c8a46e5a50a Mon Sep 17 00:00:00 2001 From: Mamadou Babaei Date: Mon, 27 Mar 2023 10:37:07 +0200 Subject: [PATCH] fix a deprecation warning on ue5 --- .../Private/SGEditor/SGSkeletonEditorCommands.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/SenseGloveEditor/Private/SGEditor/SGSkeletonEditorCommands.cpp b/Source/SenseGloveEditor/Private/SGEditor/SGSkeletonEditorCommands.cpp index 7427061c..03c9c698 100644 --- a/Source/SenseGloveEditor/Private/SGEditor/SGSkeletonEditorCommands.cpp +++ b/Source/SenseGloveEditor/Private/SGEditor/SGSkeletonEditorCommands.cpp @@ -42,7 +42,12 @@ FSGSkeletonEditorCommands::FSGSkeletonEditorCommands() TEXT("SGSkeletonEditor"), NSLOCTEXT("Contexts", "SGSkeletonEditor", "SenseGlove Skeleton Editor"), NAME_None, - FEditorStyle::GetStyleSetName()) +#if ENGINE_MAJOR_VERSION >= 5 + FAppStyle::GetAppStyleSetName() +#else + FEditorStyle::GetStyleSetName() +#endif /* ENGINE_MAJOR_VERSION >= 5 */ + ) { }