Skip to content

Upgrade Spine to the latest version #1381

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pandamicro opened this issue Jan 23, 2015 · 7 comments
Closed

Upgrade Spine to the latest version #1381

pandamicro opened this issue Jan 23, 2015 · 7 comments
Labels
Milestone

Comments

@pandamicro
Copy link
Contributor

No description provided.

@caiqingdong
Copy link

原来代码
bool SkeletonRenderer::setAttachment (const std::string& slotName, const std::string& attachmentName) {
return spSkeleton_setAttachment(_skeleton, slotName.c_str(), attachmentName.c_str()) ? true : false;
}

改为

bool SkeletonRenderer::setAttachment (const std::string& slotName, const std::string& attachmentName) {
return spSkeleton_setAttachment(_skeleton, slotName.c_str(), attachmentName.empty() ? nullptr : attachmentName.c_str()) ? true : false;
}

原因attachment May be 0 to clear the attachment for the slot
设置slot后就不能设置隐藏

@pandamicro
Copy link
Contributor Author

It have been reported here: cocos2d/cocos2d-x#10185

@pandamicro
Copy link
Contributor Author

Related PRs:

#1132 #1444 #1447

We need to update SkeletonAnimation's event system in Web Engine with the same APIs in Native Engine.

It will be done in v3.4

@pandamicro
Copy link
Contributor Author

#1452

@pandamicro
Copy link
Contributor Author

@dingpinglv Can you upgrade the SkeletonAnimation's event system API with the latest version ?

@pandamicro pandamicro added this to the v3.4 milestone Mar 6, 2015
@pandamicro
Copy link
Contributor Author

cocos2d/cocos2d-html5#2758

Spine Runtime for html5 upgraded

@dingpinglv
Copy link
Contributor

The SkeletonAnimation's event system APIs has been updated at: cocos2d/cocos2d-html5#2772

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants