From 2fa200ff5380d03bf3f581c00ef202729983423f 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. --- 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 b07611b3183..a66a2849ae7 100644 --- a/scene/animation/animation_tree_player.cpp +++ b/scene/animation/animation_tree_player.cpp @@ -861,8 +861,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;