reset pose when switch animation

This commit is contained in:
wu shengjin 2013-03-18 17:49:01 +08:00
parent fb671c3ce9
commit a8030588f8

View File

@ -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;