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:
parent
ee20365f7c
commit
830947feaf
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue