1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-25 16:43:33 +00:00

Add warning for missing body parts

This commit is contained in:
scrawl 2015-01-23 17:29:03 +01:00
parent 79d2eebe54
commit b0c2aec374

View File

@ -811,6 +811,8 @@ void NpcAnimation::addPartGroup(int group, int priority, const std::vector<ESM::
bodypart->mData.mPart == ESM::BodyPart::MP_Upperarm)) bodypart->mData.mPart == ESM::BodyPart::MP_Upperarm))
bodypart = NULL; bodypart = NULL;
} }
else if (!bodypart)
std::cerr << "Failed to find body part '" << part->mFemale << "'" << std::endl;
} }
if(!bodypart && !part->mMale.empty()) if(!bodypart && !part->mMale.empty())
{ {
@ -824,6 +826,8 @@ void NpcAnimation::addPartGroup(int group, int priority, const std::vector<ESM::
bodypart->mData.mPart == ESM::BodyPart::MP_Upperarm)) bodypart->mData.mPart == ESM::BodyPart::MP_Upperarm))
bodypart = NULL; bodypart = NULL;
} }
else if (!bodypart)
std::cerr << "Failed to find body part '" << part->mMale << "'" << std::endl;
} }
if(bodypart) if(bodypart)