summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-12-01 18:11:07 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-12-01 18:11:07 +0100
commita7fcfacaa5b67de0ca4d16b7672f1a53abff96a1 (patch)
tree06821c3e62b94220d5b97329bed6c9b9c86ac41c /scene
parente5f0a565e2c9b9623bb5df5b31b60e480c248459 (diff)
parentc1a29f5ef4c43c6b1ba6afa5361f197fa8e39ad2 (diff)
Merge pull request #69427 from TokageItLab/remove-wrong-method-root-pos
Remove unneeded calc in root motion
Diffstat (limited to 'scene')
-rw-r--r--scene/animation/animation_tree.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/animation/animation_tree.cpp b/scene/animation/animation_tree.cpp
index 724670cfd7..3e0f59a48a 100644
--- a/scene/animation/animation_tree.cpp
+++ b/scene/animation/animation_tree.cpp
@@ -1630,7 +1630,7 @@ void AnimationTree::_process_graph(double p_delta) {
TrackCacheTransform *t = static_cast<TrackCacheTransform *>(track);
if (t->root_motion) {
- root_motion_position = root_motion_rotation.xform_inv(t->loc);
+ root_motion_position = t->loc;
root_motion_rotation = t->rot;
root_motion_scale = t->scale - Vector3(1, 1, 1);