1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 15:35:23 +00:00

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).
This commit is contained in:
Chris Robinson 2013-01-22 00:24:57 -08:00
parent 37fe1bd3f0
commit d836b3d0ff

View File

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