summaryrefslogtreecommitdiff
path: root/scene/animation
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2021-10-13 15:49:14 -0300
committerGitHub <noreply@github.com>2021-10-13 15:49:14 -0300
commit78cdfff0ec43a13406a7654eaf89aad50ddf8fde (patch)
tree43014179b44fedcca852bc32ff13ac3cd6929b30 /scene/animation
parentc515fdd0fb480fe4e833ddd6cfe8c8162cd15e81 (diff)
parent2dc823273e8d7d0eb92049c0d687f6a2c247ce13 (diff)
Merge pull request #53765 from reduz/skeleton-remove-rest-influence
Remove REST transform influence in skeleton bones
Diffstat (limited to 'scene/animation')
-rw-r--r--scene/animation/animation_tree.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/scene/animation/animation_tree.cpp b/scene/animation/animation_tree.cpp
index 2ed8268289..dd5fe46223 100644
--- a/scene/animation/animation_tree.cpp
+++ b/scene/animation/animation_tree.cpp
@@ -1360,9 +1360,6 @@ void AnimationTree::_process_graph(real_t p_delta) {
root_motion_transform = xform;
- if (t->skeleton && t->bone_idx >= 0) {
- root_motion_transform = (t->skeleton->get_bone_rest(t->bone_idx) * root_motion_transform) * t->skeleton->get_bone_rest(t->bone_idx).affine_inverse();
- }
} else if (t->skeleton && t->bone_idx >= 0) {
if (t->loc_used) {
t->skeleton->set_bone_pose_position(t->bone_idx, t->loc);