Broken bone references from .kf files are no longer a fatal error (Bug #2687)

c++11
scrawl 10 years ago
parent aad8e7b6d0
commit 2d072aab2d

@ -347,7 +347,10 @@ namespace MWRender
std::string bonename = Misc::StringUtils::lowerCase(it->first); std::string bonename = Misc::StringUtils::lowerCase(it->first);
NodeMap::const_iterator found = mNodeMap.find(bonename); NodeMap::const_iterator found = mNodeMap.find(bonename);
if (found == mNodeMap.end()) if (found == mNodeMap.end())
throw std::runtime_error("addAnimSource: can't find bone " + bonename); {
std::cerr << "addAnimSource: can't find bone '" + bonename << "' in " << model << " (referenced by " << kfname << ")" << std::endl;
continue;
}
osg::Node* node = found->second; osg::Node* node = found->second;

Loading…
Cancel
Save