Hi guys,
We just updated our spine to 3.8 and the latest spine-cpp runtime with cocos2dx 3.17.1. Now we found a problem when set animation, the slots are still there which should be gone. We have try to call SetToSetupPose before change animation, it does not work.
The skateboard should be gone, but it does not.
Anyone can help to check it?
Best
Yann
Code:
spine::AnimationStateData* stateData = new (FILE, LINE) spine::AnimationStateData(skeletonData);
spine::SkeletonAnimation* skeletonNode = spine::SkeletonAnimation::createWithData(skeletonData, false);
skeletonNode->setAnimationStateData(stateData);
skeletonNode->addAnimation(0, "hoverboard", false);
skeletonNode->setToSetupPose();
skeletonNode->addAnimation(0,"walk",true);
skeletonNode->setScale(0.5);
skeletonNode->setPosition(Vec2(200,100));
addChild(skeletonNode);
Checked with webgl runtime, it works well. The skateboard was gone