1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 15:35:23 +00:00

Setup base_anim.nif as an initial skeleton source for biped creatures

This commit is contained in:
Chris Robinson 2013-02-05 17:16:45 -08:00
parent 054ef3113a
commit c839502743

View File

@ -23,9 +23,10 @@ CreatureAnimation::CreatureAnimation(const MWWorld::Ptr &ptr)
assert (ref->mBase != NULL);
if(!ref->mBase->mModel.empty())
{
std::string mesh = "meshes\\" + ref->mBase->mModel;
if((ref->mBase->mFlags&ESM::Creature::Biped))
insertSkeletonSource("meshes\\base_anim.nif");
createEntityList(mPtr.getRefData().getBaseNode(), mesh);
createEntityList(mPtr.getRefData().getBaseNode(), "meshes\\"+ref->mBase->mModel);
for(size_t i = 0;i < mEntityList.mEntities.size();i++)
{
Ogre::Entity *ent = mEntityList.mEntities[i];