Only simulate if particle was alive
authorAlan Alpert <alan.alpert@nokia.com>
Wed, 2 Nov 2011 03:46:01 +0000 (13:46 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 2 Nov 2011 22:56:47 +0000 (23:56 +0100)
commita06ec0c299a267149d9440ddb935272b0165e464
treec197873a3bcad2171828ef718b7bc0b303639d78
parent030b3d1ceca96bfa2a04f761d574887687c666c1
Only simulate if particle was alive

When spliting the simulation into multiple parts, do not simulate for
times before the particle was born. Otherwise huge simulation times lead
to huge effects even on particles with a simulated birth of near the end
of that time.

Change-Id: I7ff507b27bf819dbebd61934b9523b23316b5e80
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/declarative/particles/qquickparticleaffector.cpp
src/declarative/particles/qquickparticlesystem.cpp
src/declarative/particles/qquickparticlesystem_p.h