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;
}