mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-29 16:36:43 +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
1 changed files with 7 additions and 0 deletions
|
@ -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…
Reference in a new issue