Don't try to create animations if there's no text keys and nonaccum node.

Such meshes apparently use NiBSAnimationNode, a Bethesda-specific extension
which has animation-related info in its flags (values currently unknown).
actorid
Chris Robinson 12 years ago
parent 37fe1bd3f0
commit d836b3d0ff

@ -414,6 +414,13 @@ void loadResource(Ogre::Resource *resource)
return;
}
if(!nonaccum)
{
warn(Ogre::StringConverter::toString(ctrls.size())+" animated node(s) in "+
skel->getName()+", but no text keys. Uses NiBSAnimationNode?");
return;
}
Ogre::UserObjectBindings &bindings = nonaccum->getUserObjectBindings();
bindings.setUserAny(sTextKeyExtraDataID, Ogre::Any(true));

Loading…
Cancel
Save