add a message dialog and instruct the user to use the context menu in order to save the skeleton asset
This commit is contained in:
@@ -35,6 +35,9 @@
|
||||
|
||||
#include "SGEditor/SGSkeletonEditorCommands.h"
|
||||
|
||||
#include "Framework/Notifications/NotificationManager.h"
|
||||
#include "Widgets/Notifications/SNotificationList.h"
|
||||
|
||||
#define LOCTEXT_NAMESPACE "SkeletonEditorCommands"
|
||||
|
||||
FSGSkeletonEditorCommands::FSGSkeletonEditorCommands()
|
||||
@@ -73,6 +76,13 @@ void FSGSkeletonEditorCommands::RegisterCommands()
|
||||
CommandList->MapAction(UpdateSkeletonReferencePose,
|
||||
FExecuteAction::CreateLambda([&]()-> void
|
||||
{
|
||||
FMessageDialog::Open(EAppMsgType::Ok, FText::FromString(
|
||||
FString(
|
||||
"In order to apply the current skeleton pose as the default"
|
||||
" reference pose permanently, first right click on the Skeleton asset in"
|
||||
" the content browser, then choose Update Skeleton Reference Pose from"
|
||||
" the context menu. Finally, if you wish the changes to persist, save"
|
||||
" the asset.")));
|
||||
}
|
||||
),
|
||||
FCanExecuteAction::CreateLambda([&]()-> bool
|
||||
|
||||
Reference in New Issue
Block a user