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

Don't add empty text key objects

This commit is contained in:
scrawl 2016-03-10 17:01:14 +01:00
parent 02d23564dc
commit abcfe9bcee

View File

@ -358,7 +358,9 @@ namespace NifOsg
skel->addChild(created);
created = skel;
}
created->getOrCreateUserDataContainer()->addUserObject(textkeys);
if (!textkeys->mTextKeys.empty())
created->getOrCreateUserDataContainer()->addUserObject(textkeys);
return created;
}