mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-12-13 19:53:06 +00:00
Catch errors from buildBones
This commit is contained in:
parent
910619eb21
commit
7ba09ff025
1 changed files with 8 additions and 1 deletions
|
|
@ -367,7 +367,14 @@ void loadResource(Ogre::Resource *resource)
|
||||||
const Nif::Node *node = dynamic_cast<const Nif::Node*>(nif.getRecord(0));
|
const Nif::Node *node = dynamic_cast<const Nif::Node*>(nif.getRecord(0));
|
||||||
|
|
||||||
std::vector<Nif::NiKeyframeController*> ctrls;
|
std::vector<Nif::NiKeyframeController*> ctrls;
|
||||||
|
try {
|
||||||
buildBones(skel, node, ctrls);
|
buildBones(skel, node, ctrls);
|
||||||
|
}
|
||||||
|
catch(std::exception &e) {
|
||||||
|
std::cerr<< "Exception while loading "<<skel->getName() <<std::endl;
|
||||||
|
std::cerr<< e.what() <<std::endl;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
std::vector<std::string> targets;
|
std::vector<std::string> targets;
|
||||||
// TODO: If ctrls.size() == 0, check for a .kf file sharing the name of the .nif file
|
// TODO: If ctrls.size() == 0, check for a .kf file sharing the name of the .nif file
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue