|
|
|
@ -1038,11 +1038,13 @@ namespace NifOsg
|
|
|
|
|
if (!(animflags & Nif::NiNode::ParticleFlag_AutoPlay))
|
|
|
|
|
{
|
|
|
|
|
partsys->setFrozen(true);
|
|
|
|
|
// HACK: particle system will not render in Frozen state if there was no update
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Due to odd code in the ParticleSystemUpdater, particle systems will not be updated in the first frame
|
|
|
|
|
// So do that update manually
|
|
|
|
|
osg::NodeVisitor nv;
|
|
|
|
|
partsys->update(0.0, nv);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// affectors must be attached *after* the emitter in the scene graph for correct update order
|
|
|
|
|
// attach to same node as the ParticleSystem, we need osgParticle Operators to get the correct
|
|
|
|
|