reset explosion and fix bug of event handler

This commit is contained in:
yangxiao 2015-03-17 17:44:52 +08:00
parent 8b3e116ed6
commit dced8004e1
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ void PUDoPlacementParticleEventHandler::handle (PUParticleSystem3D* particleSyst
auto children = parentSystem->getChildren();
for(auto iter : children)
{
PUParticleSystem3D *child = static_cast<PUParticleSystem3D *>(iter);
PUParticleSystem3D *child = dynamic_cast<PUParticleSystem3D *>(iter);
if (child){
system = child;
emitter = system->getEmitter(_forceEmitterName);

View File

@ -156,4 +156,4 @@ system explosionSystem
on_time greater_than 0.3
}
}
}
}