From 830947feafc5e3af452296ff80a6418e9c56c5d2 Mon Sep 17 00:00:00 2001 From: Josh Grams Date: Tue, 8 Mar 2016 17:23:32 -0500 Subject: [PATCH] AnimationTreePlayer: distinguish value tracks. If the node had a 3D Transform, the transform would always get written, even if the tracks on that node were supposed to be value tracks. (cherry picked from commit 2fa200ff5380d03bf3f581c00ef202729983423f) --- scene/animation/animation_tree_player.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scene/animation/animation_tree_player.cpp b/scene/animation/animation_tree_player.cpp index 67c7eae1bf5..132d9b491a2 100644 --- a/scene/animation/animation_tree_player.cpp +++ b/scene/animation/animation_tree_player.cpp @@ -863,8 +863,9 @@ void AnimationTreePlayer::_process_animation(float p_delta) { if (!t.node) continue; - //if (E->get()->t.type!=Animation::TYPE_TRANSFORM) - // continue; + + if(t.property) // value track; was applied in step 2 + continue; Transform xform; xform.basis=t.rot;