mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-01 04:45:34 +00:00
Allow junk (data-less) NiParticleColorModifiers
This commit is contained in:
parent
7a9403aeed
commit
74a74209ac
1 changed files with 2 additions and 0 deletions
|
@ -870,6 +870,8 @@ namespace NifOsg
|
|||
else if (affectors->recType == Nif::RC_NiParticleColorModifier)
|
||||
{
|
||||
const Nif::NiParticleColorModifier *cl = static_cast<const Nif::NiParticleColorModifier*>(affectors.getPtr());
|
||||
if (cl->data.empty())
|
||||
continue;
|
||||
const Nif::NiColorData *clrdata = cl->data.getPtr();
|
||||
program->addOperator(new ParticleColorAffector(clrdata));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue