forked from teamnwah/openmw-tes3coop
Closes #855: Don't try to look up bone if there's no skeleton
This commit is contained in:
parent
04f9f7af56
commit
c0dba2834b
1 changed files with 5 additions and 2 deletions
|
@ -1000,8 +1000,11 @@ class NIFObjectLoader
|
|||
{
|
||||
const Nif::NiTextKeyExtraData *tk = static_cast<const Nif::NiTextKeyExtraData*>(e.getPtr());
|
||||
|
||||
int trgtid = NIFSkeletonLoader::lookupOgreBoneHandle(name, node->recIndex);
|
||||
extractTextKeys(tk, scene->mTextKeys[trgtid]);
|
||||
if (scene->mSkelBase)
|
||||
{
|
||||
int trgtid = NIFSkeletonLoader::lookupOgreBoneHandle(name, node->recIndex);
|
||||
extractTextKeys(tk, scene->mTextKeys[trgtid]);
|
||||
}
|
||||
}
|
||||
else if(e->recType == Nif::RC_NiStringExtraData)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue