mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 03:40:14 +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:
parent
37fe1bd3f0
commit
d836b3d0ff
@ -414,6 +414,13 @@ void loadResource(Ogre::Resource *resource)
|
|||||||
return;
|
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();
|
Ogre::UserObjectBindings &bindings = nonaccum->getUserObjectBindings();
|
||||||
bindings.setUserAny(sTextKeyExtraDataID, Ogre::Any(true));
|
bindings.setUserAny(sTextKeyExtraDataID, Ogre::Any(true));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user