cocos2dx3.0加载spine1.9制作的骨骼动画宕机

加载spine1.9的骨骼动画 如下if (i == 0) return 0;这句会return出去 即readTuple失败 应该是cocos引擎没更新libSpine导致解析失败 急求官方更新引擎对spine1.9的支持

解析atlas.cpp部分代码如下:

/* Returns the number of tuple values read (2, 4, or 0 for failure). */
static int readTuple (const char* end, Str tuple]) {
    int i;
    Str str;
    readLine(0, end, &str);
    if (!beginPast(&str, ':')) return 0;

    for (i = 0; i < 3; ++i) {
        tuple*.begin = str.begin;
        if (!beginPast(&str, ',')) {
            if (i == 0) return 0;
            break;
        }
        tuple*.end = str.begin - 2;
        trim(&tuple*);
    }
    tuple*.begin = str.begin;
    tuple*.end = str.end;
    trim(&tuple*);
    return i + 1;
}


```


******

自己改~~~~~

用哪个版本引擎改?? 你改过么? 我查了下,引擎是spine库不支持mesh和skinnedmesh的解析,但是找不到合适的第三番解析代码啊

3.0以上版本能支持1.9版的spine吗

把atlas文件中,size 那一行去掉就行了(貌似是第二行)。

恩恩 这个之前解决了 谢了哈~

据说3.3re0已经支持spine2.2了 还没试过 回头试试~~

遇到相同的问题,去掉size那一行还是不行。

https://github.com/EsotericSoftware/spine-runtimes/tree/master/spine-cocos2dx

最新的runtime在这里