mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 10:23:52 +00:00
Warn about unhandled node types before the controllers
This commit is contained in:
parent
5b2ca6fa7d
commit
da5f11700f
1 changed files with 5 additions and 5 deletions
|
@ -318,6 +318,11 @@ void buildBones(Ogre::Skeleton *skel, const Nif::Node *node, Ogre::Bone *&animro
|
||||||
bone->setScale(Ogre::Vector3(node->trafo.scale));
|
bone->setScale(Ogre::Vector3(node->trafo.scale));
|
||||||
bone->setBindingPose();
|
bone->setBindingPose();
|
||||||
|
|
||||||
|
if(!(node->recType == Nif::RC_NiNode || /* Nothing special; children traversed below */
|
||||||
|
node->recType == Nif::RC_RootCollisionNode /* handled in nifbullet (hopefully) */
|
||||||
|
))
|
||||||
|
warn("Unhandled "+node->recName+" "+node->name+" in "+skel->getName());
|
||||||
|
|
||||||
Nif::ControllerPtr ctrl = node->controller;
|
Nif::ControllerPtr ctrl = node->controller;
|
||||||
while(!ctrl.empty())
|
while(!ctrl.empty())
|
||||||
{
|
{
|
||||||
|
@ -328,11 +333,6 @@ void buildBones(Ogre::Skeleton *skel, const Nif::Node *node, Ogre::Bone *&animro
|
||||||
ctrl = ctrl->next;
|
ctrl = ctrl->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!(node->recType == Nif::RC_NiNode || /* Nothing special; children traversed below */
|
|
||||||
node->recType == Nif::RC_RootCollisionNode /* handled in nifbullet (hopefully) */
|
|
||||||
))
|
|
||||||
warn("Unhandled "+node->recName+" "+node->name+" in "+skel->getName());
|
|
||||||
|
|
||||||
Nif::ExtraPtr e = node->extra;
|
Nif::ExtraPtr e = node->extra;
|
||||||
while(!e.empty())
|
while(!e.empty())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue