Hi,
In the animationState the tracks list hold animaitons on different tracks. If I understand correctly the desired function is that the animation in track 0 is applied first and then the animation in track 1 is applied overwriting potential keys in the first animation and so on with tracks 2,3...etc.
In the apply and update functions in AnimationState the pairs() function is used to loop over the tracks table. The problem is that the pairs method of iteration does not guarantee the order that items are returned.
http://lua-users.org/wiki/ForTutorial
ipairs() is also a poor fit since it does not allow nil values in the middle on the table (as far as I know).
Does anyone have a potential fix for this? (Given that my understanding of how tracks are supposed to work is correct.)