Don't add empty text key objects

pull/915/head
scrawl 9 years ago
parent 02d23564dc
commit abcfe9bcee

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

Loading…
Cancel
Save