Files
UnrealEngineUWP/Engine/Source/Editor/Persona/Private/PoseEditorCommands.cpp
jurre debaare 8b51138eb0 GitHub 9393 : Allow poses to be defined properly from user input
#jira UE-159845
#feature added context menu option(s) allowing user to add additional _named_ poses created from either ref-pose or the current viewport pose. Did not integrate pull-request code, but added behaviour that will allow for achieving the same end result.
#preflight 632af593b40000c8f0bed7a5
#rb Halfdan.Ingvarsson

[CL 22143321 by jurre debaare in ue5-main branch]
2022-09-22 15:42:39 -04:00

19 lines
974 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "PoseEditorCommands.h"
#include "Framework/Commands/InputChord.h"
#include "Framework/Commands/UICommandInfo.h"
#define LOCTEXT_NAMESPACE "PoseEditorCommands"
void FPoseEditorCommands::RegisterCommands()
{
UI_COMMAND(PasteAllNames, "Paste All Pose Names", "Paste all pose names from clipboard", EUserInterfaceActionType::Button, FInputChord());
UI_COMMAND(UpdatePoseToCurrent, "Update Pose to Current", "Updates the selected pose to match the pose currently shown in the viewport", EUserInterfaceActionType::Button, FInputChord());
UI_COMMAND(AddPoseFromCurrent, "Add Pose from Current", "Adds a new pose matching the pose currently shown in the viewport", EUserInterfaceActionType::Button, FInputChord());
UI_COMMAND(AddPoseFromReference, "Add Pose from Reference", "Adds a new pose matching the Skeleton its reference pose", EUserInterfaceActionType::Button, FInputChord());
}
#undef LOCTEXT_NAMESPACE