From 3e7ec2b28d4a6097622c6215c7d6895e666ac8c3 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Tue, 1 Apr 2025 17:28:33 +0200 Subject: [PATCH] Fix missing animation playback information for state transition when using root motion modify nodes --- Source/Engine/Animations/Graph/AnimGroup.Animation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Engine/Animations/Graph/AnimGroup.Animation.cpp b/Source/Engine/Animations/Graph/AnimGroup.Animation.cpp index 29b071349..ed7430bcf 100644 --- a/Source/Engine/Animations/Graph/AnimGroup.Animation.cpp +++ b/Source/Engine/Animations/Graph/AnimGroup.Animation.cpp @@ -1831,7 +1831,7 @@ void AnimGraphExecutor::ProcessGroupAnimation(Box* boxBase, Node* nodeBase, Valu const AnimGraphImpulse* poseData = (AnimGraphImpulse*)pose.AsPointer; auto nodes = node->GetNodes(this); - nodes->Nodes = poseData->Nodes; + *nodes = *poseData; nodes->RootMotion.Translation = (Vector3)tryGetValue(node->GetBox(2), Value::Zero); nodes->RootMotion.Orientation = (Quaternion)tryGetValue(node->GetBox(3), Value::Zero); value = nodes; @@ -1849,7 +1849,7 @@ void AnimGraphExecutor::ProcessGroupAnimation(Box* boxBase, Node* nodeBase, Valu const AnimGraphImpulse* poseData = (AnimGraphImpulse*)pose.AsPointer; auto nodes = node->GetNodes(this); - nodes->Nodes = poseData->Nodes; + *nodes = *poseData; nodes->RootMotion.Translation = poseData->RootMotion.Translation + (Vector3)tryGetValue(node->GetBox(2), Value::Zero); nodes->RootMotion.Orientation = poseData->RootMotion.Orientation * (Quaternion)tryGetValue(node->GetBox(3), Value::Zero); value = nodes;