You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Support pose watch when debugging parent or linked anim blueprints. Also prevent toggling pose watch from child anim bps
#jira UE-199935 #rb lucas.dower, Thomas.Sarkanen [CL 29727618 by euan carmichael in ue5-main branch]
This commit is contained in:
@@ -880,6 +880,12 @@ bool FAnimationBlueprintEditor::CanTogglePoseWatch()
|
||||
const FGraphPanelSelectionSet SelectedNodes = GetSelectedNodes();
|
||||
UAnimBlueprint* AnimBP = GetAnimBlueprint();
|
||||
|
||||
// Can't add pose watch from a child anim bp
|
||||
if (UAnimBlueprint::FindRootAnimBlueprint(AnimBP))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
for (FGraphPanelSelectionSet::TConstIterator NodeIt(SelectedNodes); NodeIt; ++NodeIt)
|
||||
{
|
||||
if (UAnimGraphNode_Base* SelectedNode = Cast<UAnimGraphNode_Base>(*NodeIt))
|
||||
@@ -920,6 +926,12 @@ void FAnimationBlueprintEditor::OnTogglePoseWatch()
|
||||
const FGraphPanelSelectionSet SelectedNodes = GetSelectedNodes();
|
||||
UAnimBlueprint* AnimBP = GetAnimBlueprint();
|
||||
|
||||
// Can't toggle pose watch from a child anim bp
|
||||
if (UAnimBlueprint::FindRootAnimBlueprint(AnimBP))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
for (FGraphPanelSelectionSet::TConstIterator NodeIt(SelectedNodes); NodeIt; ++NodeIt)
|
||||
{
|
||||
if (UAnimGraphNode_Base* SelectedNode = Cast<UAnimGraphNode_Base>(*NodeIt))
|
||||
|
||||
Reference in New Issue
Block a user