From abcfe9bcee2e8daa3b72fbe9fc7bd81bbbefc79c Mon Sep 17 00:00:00 2001 From: scrawl Date: Thu, 10 Mar 2016 17:01:14 +0100 Subject: [PATCH] Don't add empty text key objects --- components/nifosg/nifloader.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/nifosg/nifloader.cpp b/components/nifosg/nifloader.cpp index c8daf315d2..0ba13d56ff 100644 --- a/components/nifosg/nifloader.cpp +++ b/components/nifosg/nifloader.cpp @@ -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; }