mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-26 22:45:15 -04:00
Remove unnecessary mBodyPrefix field
This commit is contained in:
parent
0f52ed9a9b
commit
dc0360b1f6
@ -126,9 +126,6 @@ void NpcAnimation::updateNpcBase()
|
|||||||
mHairModel = "meshes\\" + store.get<ESM::BodyPart>().find("WerewolfHair")->mModel;
|
mHairModel = "meshes\\" + store.get<ESM::BodyPart>().find("WerewolfHair")->mModel;
|
||||||
}
|
}
|
||||||
|
|
||||||
mBodyPrefix = "b_n_" + mNpc->mRace;
|
|
||||||
Misc::StringUtils::toLower(mBodyPrefix);
|
|
||||||
|
|
||||||
bool isBeast = (race->mData.mFlags & ESM::Race::Beast) != 0;
|
bool isBeast = (race->mData.mFlags & ESM::Race::Beast) != 0;
|
||||||
std::string smodel = (mViewMode != VM_FirstPerson) ?
|
std::string smodel = (mViewMode != VM_FirstPerson) ?
|
||||||
(!isWerewolf ? !isBeast ? "meshes\\base_anim.nif"
|
(!isWerewolf ? !isBeast ? "meshes\\base_anim.nif"
|
||||||
@ -144,7 +141,7 @@ void NpcAnimation::updateNpcBase()
|
|||||||
addAnimSource(smodel);
|
addAnimSource(smodel);
|
||||||
if(!isWerewolf)
|
if(!isWerewolf)
|
||||||
{
|
{
|
||||||
if(mBodyPrefix.find("argonian") != std::string::npos)
|
if(Misc::StringUtils::lowerCase(mNpc->mRace).find("argonian") != std::string::npos)
|
||||||
addAnimSource("meshes\\argonian_swimkna.nif");
|
addAnimSource("meshes\\argonian_swimkna.nif");
|
||||||
else if(!mNpc->isMale() && !isBeast)
|
else if(!mNpc->isMale() && !isBeast)
|
||||||
addAnimSource("meshes\\base_anim_female.nif");
|
addAnimSource("meshes\\base_anim_female.nif");
|
||||||
|
@ -37,11 +37,10 @@ private:
|
|||||||
// Bounded Parts
|
// Bounded Parts
|
||||||
NifOgre::ObjectList mObjectParts[ESM::PRT_Count];
|
NifOgre::ObjectList mObjectParts[ESM::PRT_Count];
|
||||||
|
|
||||||
const ESM::NPC *mNpc;
|
const ESM::NPC *mNpc;
|
||||||
std::string mHeadModel;
|
std::string mHeadModel;
|
||||||
std::string mHairModel;
|
std::string mHairModel;
|
||||||
std::string mBodyPrefix;
|
ViewMode mViewMode;
|
||||||
ViewMode mViewMode;
|
|
||||||
bool mShowWeapons;
|
bool mShowWeapons;
|
||||||
|
|
||||||
float mTimeToChange;
|
float mTimeToChange;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user