1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +00:00

Load extra animations for NPCs

This commit is contained in:
Chris Robinson 2013-02-05 18:09:43 -08:00
parent 8b1e7b95ba
commit 535cd8360f

View File

@ -120,6 +120,14 @@ NpcAnimation::NpcAnimation(const MWWorld::Ptr& ptr, Ogre::SceneNode* node, MWWor
base->setRenderQueueGroup(transparent ? RQG_Alpha : RQG_Main);
}
if(!mNpc->isMale() && !isBeast)
insertSkeletonSource("meshes\\base_anim_female.nif");
else if(mBodyPrefix.find("argonian") != std::string::npos)
insertSkeletonSource("meshes\\argonian_swimkna.nif");
if(mNpc->mModel.length() > 0)
insertSkeletonSource("meshes\\"+Misc::StringUtils::lowerCase(mNpc->mModel));
float scale = race->mData.mHeight.mMale;
if (!mNpc->isMale()) {
scale = race->mData.mHeight.mFemale;