Browse Source

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.
Josh Grams 9 years ago
parent
commit
2fa200ff53
1 changed files with 3 additions and 2 deletions
  1. 3 2
      scene/animation/animation_tree_player.cpp

+ 3 - 2
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;