Warn about unhandled node types before the controllers

actorid
Chris Robinson 12 years ago
parent 5b2ca6fa7d
commit da5f11700f

@ -318,6 +318,11 @@ void buildBones(Ogre::Skeleton *skel, const Nif::Node *node, Ogre::Bone *&animro
bone->setScale(Ogre::Vector3(node->trafo.scale));
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;
while(!ctrl.empty())
{
@ -328,11 +333,6 @@ void buildBones(Ogre::Skeleton *skel, const Nif::Node *node, Ogre::Bone *&animro
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;
while(!e.empty())
{

Loading…
Cancel
Save