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 2fa200ff53)
This commit is contained in:
Josh Grams 2016-03-08 17:23:32 -05:00 committed by Rémi Verschelde
parent ee20365f7c
commit 830947feaf
1 changed files with 3 additions and 2 deletions

View File

@ -863,8 +863,9 @@ void AnimationTreePlayer::_process_animation(float p_delta) {
if (!t.node) if (!t.node)
continue; continue;
//if (E->get()->t.type!=Animation::TYPE_TRANSFORM)
// continue; if(t.property) // value track; was applied in step 2
continue;
Transform xform; Transform xform;
xform.basis=t.rot; xform.basis=t.rot;