mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
reset pose when switch animation
This commit is contained in:
parent
fb671c3ce9
commit
a8030588f8
@ -57,6 +57,7 @@ void CCSpineNode::playAnimation(const char* fileName, bool loop)
|
||||
|
||||
std::ifstream animationFile(FULL_PATH(fileName));
|
||||
m_animation = m_skeletonJson->readAnimation(animationFile, m_skeleton->data);
|
||||
m_skeleton->setToBindPose();
|
||||
|
||||
m_animTimer = 0.0f;
|
||||
m_loop = loop;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user