Yann

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
You do not have the required permissions to view the files attached to this post.
Yann
  • Posts: 7

badlogic

I just pushed a commit to the 3.8 and 3.9-beta branches that should fix this issue! There was a bug in AnimationState.cpp. Please update your copy of spine-cpp.
User avatar
badlogic

Mario
  • Posts: 1936

Yann

Fixed, thanks!
Yann
  • Posts: 7


Return to Runtimes