diff options
author | Silc Renew <tokage.it.lab@gmail.com> | 2022-12-01 11:11:21 +0900 |
---|---|---|
committer | Silc Renew <tokage.it.lab@gmail.com> | 2022-12-01 11:11:21 +0900 |
commit | c1a29f5ef4c43c6b1ba6afa5361f197fa8e39ad2 (patch) | |
tree | 81ad3fcdc9463b6276d6d6defc388d41daf38021 | |
parent | 0ff8742919af72c7412e63ef0f646cb4e7bd7d8f (diff) |
Remove unneeded calc in root motion
-rw-r--r-- | scene/animation/animation_tree.cpp | 2 |
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); |