mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
fixed a bug
This commit is contained in:
parent
1b880f0d4f
commit
c309f3151e
@ -75,6 +75,7 @@ void CCSpineNode::playAnimation(const char* fileName, bool loop)
|
|||||||
m_animation = m_skeletonJson->readAnimation(animationFile, m_skeleton->data);
|
m_animation = m_skeletonJson->readAnimation(animationFile, m_skeleton->data);
|
||||||
m_skeleton->setToBindPose();
|
m_skeleton->setToBindPose();
|
||||||
|
|
||||||
|
m_animName = fileName;
|
||||||
m_animTimer = 0.0f;
|
m_animTimer = 0.0f;
|
||||||
m_loop = loop;
|
m_loop = loop;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user