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.
This commit is contained in:
Josh Grams 2016-03-08 17:23:32 -05:00
parent f7fad32188
commit 2fa200ff53
1 changed files with 3 additions and 2 deletions

View File

@ -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;