Handle NiBSPArrayController as alias for NiParticleSystemController

The differences (if any) are unknown.

NiBSPArrayController is used by the Atronach_Fire.nif model. Its particles are now visible, but they don't look right yet. Need to handle NiAutoNormalParticlesData?
pull/117/head
scrawl 11 years ago
parent cba50c7338
commit e51300989c

@ -863,7 +863,8 @@ class NIFObjectLoader
Nif::ControllerPtr ctrl = partnode->controller; Nif::ControllerPtr ctrl = partnode->controller;
while(!ctrl.empty()) while(!ctrl.empty())
{ {
if(ctrl->recType == Nif::RC_NiParticleSystemController && ctrl->flags & Nif::NiNode::ControllerFlag_Active) if((ctrl->recType == Nif::RC_NiParticleSystemController || ctrl->recType == Nif::RC_NiBSPArrayController)
&& ctrl->flags & Nif::NiNode::ControllerFlag_Active)
{ {
const Nif::NiParticleSystemController *partctrl = static_cast<const Nif::NiParticleSystemController*>(ctrl.getPtr()); const Nif::NiParticleSystemController *partctrl = static_cast<const Nif::NiParticleSystemController*>(ctrl.getPtr());

@ -42,6 +42,7 @@ void NIFSkeletonLoader::buildBones(Ogre::Skeleton *skel, const Nif::Node *node,
while(!ctrl.empty()) while(!ctrl.empty())
{ {
if(!(ctrl->recType == Nif::RC_NiParticleSystemController || if(!(ctrl->recType == Nif::RC_NiParticleSystemController ||
ctrl->recType == Nif::RC_NiBSPArrayController ||
ctrl->recType == Nif::RC_NiVisController || ctrl->recType == Nif::RC_NiVisController ||
ctrl->recType == Nif::RC_NiUVController || ctrl->recType == Nif::RC_NiUVController ||
ctrl->recType == Nif::RC_NiKeyframeController || ctrl->recType == Nif::RC_NiKeyframeController ||

Loading…
Cancel
Save