Hi
First thanks for Spine - it's great tool !
All works very good but we have strange problem.
I imported spine json file, bake animations and instantiate enemy with mecanim and all works !
But we are using blending for animations and when transition from one animation to another ended in this frame shows "default look" of enemy. And it's looks very bad =(
Default look - i mean what we see when we just instantiate enemy to scene and didn't started it.
Can anyone help us with this problem ?
Thanks,
Serhiy.
Hi
I made video with bug.
In zip file you will find avi file because i can't attach avi file =(
Thanks,
Serhiy
Hi
So I fixed this by myself
File SkeletonAnimator.cs line 118
animationTable[info.clip.name].Mix(skeleton, Mathf.Max(0, time - deltaTime), time, nextStateInfo.loop, null, weight);
replace with
// ExcaliburGames BEGIN
//animationTable[info.clip.name].Mix(skeleton, Mathf.Max(0, time - deltaTime), time, nextStateInfo.loop, null, weight);
if(Mathf.Max(0, time - deltaTime) > 0f && time > 0f){
animationTable[info.clip.name].Mix(skeleton, Mathf.Max(0, time - deltaTime), time, nextStateInfo.loop, null, weight);
}
else{
time = stateInfo.normalizedTime * info.clip.length;
animationTable[info.clip.name].Mix(skeleton, Mathf.Max(0, time - deltaTime), time, nextStateInfo.loop, null, weight);
}
// ExcaliburGames END
Now blending works great without any bugs.
Thanks,
Serhiy