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

Closes #855: Don't try to look up bone if there's no skeleton

This commit is contained in:
scrawl 2013-12-29 01:20:57 +01:00
parent 04f9f7af56
commit c0dba2834b

View File

@ -1000,8 +1000,11 @@ class NIFObjectLoader
{ {
const Nif::NiTextKeyExtraData *tk = static_cast<const Nif::NiTextKeyExtraData*>(e.getPtr()); const Nif::NiTextKeyExtraData *tk = static_cast<const Nif::NiTextKeyExtraData*>(e.getPtr());
int trgtid = NIFSkeletonLoader::lookupOgreBoneHandle(name, node->recIndex); if (scene->mSkelBase)
extractTextKeys(tk, scene->mTextKeys[trgtid]); {
int trgtid = NIFSkeletonLoader::lookupOgreBoneHandle(name, node->recIndex);
extractTextKeys(tk, scene->mTextKeys[trgtid]);
}
} }
else if(e->recType == Nif::RC_NiStringExtraData) else if(e->recType == Nif::RC_NiStringExtraData)
{ {