|
|
@ -435,9 +435,8 @@ void ParticleSystemController::operator() (osg::Node* node, osg::NodeVisitor* nv
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (hasInput())
|
|
|
|
if (hasInput())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
osgParticle::ParticleProcessor* emitter = dynamic_cast<osgParticle::ParticleProcessor*>(node);
|
|
|
|
osgParticle::ParticleProcessor* emitter = static_cast<osgParticle::ParticleProcessor*>(node);
|
|
|
|
float time = getInputValue(nv);
|
|
|
|
float time = getInputValue(nv);
|
|
|
|
if (emitter)
|
|
|
|
|
|
|
|
emitter->setEnabled(time >= mEmitStart && time < mEmitStop);
|
|
|
|
emitter->setEnabled(time >= mEmitStart && time < mEmitStop);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
traverse(node, nv);
|
|
|
|
traverse(node, nv);
|
|
|
|