mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
Use the skeleton name for the main animation
This commit is contained in:
parent
2db80a1504
commit
4bc93ecd1a
@ -226,7 +226,7 @@ void loadResource(Ogre::Resource *resource)
|
||||
return;
|
||||
}
|
||||
|
||||
Ogre::Animation *anim = skel->createAnimation("default", maxtime);
|
||||
Ogre::Animation *anim = skel->createAnimation(skel->getName(), maxtime);
|
||||
/* HACK: Pre-create the node tracks by matching the track IDs with the
|
||||
* bone IDs. Otherwise, Ogre animates the wrong bones. */
|
||||
size_t bonecount = skel->getNumBones();
|
||||
|
Loading…
x
Reference in New Issue
Block a user