在引用了一个spine 出现如下报错:
cocos Invalid timeline type for a bone: flipX
spine 的高版本中已经没有 filpX 和filpY了
cocos 3.16中也已经不再支持
于是
参照 3.10 中的 做了兼容了
修改如下
1.spine/Bone.h
加入int/*bool*/flipX, flipY;
2. Animation.h
SP_TIMELINE_FLIPX,
SP_TIMELINE_FLIPY
添加
typedef struct spFlipTimeline {
spTimeline super;
int const x;
int const framesCount;
float* const frames; /* time, flip, ... */
int boneIndex;
#ifdef __cplusplus
spFlipTimeline() :
super(),
x(0),
framesCount(0),
frames(0),
boneIndex(0) {
}
#endif
} spFlipTimeline;
spFlipTimeline*&