- Modifié
Error: Invalid timeline type for a bone: shear
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.
Sorry for the delay.
The spine-c runtime supports 3.1.08 max:
https://github.com/EsotericSoftware/spine-runtimes/tree/master/spine-c#spine-version
You should freeze your Spine version and only update it when you update your runtimes, so they are kept in sync.
Ignoring unknown timelines isn't great, since probably your animations won't look like they do in Spine. It's a fine hack to apply locally, but probably shouldn't be in the official runtimes.