1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-29 21:45:32 +00:00

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?
This commit is contained in:
scrawl 2014-05-22 22:15:20 +02:00
parent cba50c7338
commit e51300989c
2 changed files with 3 additions and 1 deletions

View file

@ -863,7 +863,8 @@ class NIFObjectLoader
Nif::ControllerPtr ctrl = partnode->controller;
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());

View file

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