Hi,
My Animation stopped working presumably because of an update, i.e new exported animations with older runtime code.
After updating to the latest c- runtimes from github i am getting a "Error: Invalid timeline type for a bone: shear".
I am using SFML with C++ and Xcode.
Any thoughts?
regards
I managed to get it to work by editing the SkeletonJson.c file.
} else {
//spAnimation_dispose(animation);
//_spSkeletonJson_setError(self, 0, "Invalid timeline type for a bone: ", timelineArray->name);
//return 0;
}
I just commented out the lines that throw the error for an unknown timeline. probably not the best solution but it work for now.
or better yet:
if (duration > animation->duration) animation->duration = duration;
} else {
if (strcmp(timelineArray->name, "shear") == 0)
{
// do nothing
}else {
spAnimation_dispose(animation);
_spSkeletonJson_setError(self, 0, "Invalid timeline type for a bone: ", timelineArray->name);
return 0;
}
}
that way the protection for unknown timeline is still there.