Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@stuvel.eu>2018-05-16 17:09:27 +0300
committerSybren A. Stüvel <sybren@stuvel.eu>2018-05-16 17:09:52 +0300
commiteacf63c96f7ce89a3e374b41fbaa036eabc13147 (patch)
treed89be675005aed3a030537eb5a93ab658e0836b8 /source/blender/draw/intern/draw_cache_impl_particles.c
parent1b2ba24749a8c7267fe053f26b81ad8f1b0b1ccd (diff)
Particle System: Pass correct particle index when drawing
Passing the wrong index caused the particles to stop being shown when the first particle dies.
Diffstat (limited to 'source/blender/draw/intern/draw_cache_impl_particles.c')
-rw-r--r--source/blender/draw/intern/draw_cache_impl_particles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_particles.c b/source/blender/draw/intern/draw_cache_impl_particles.c
index a1eb98a85e2..b8b24ac8afc 100644
--- a/source/blender/draw/intern/draw_cache_impl_particles.c
+++ b/source/blender/draw/intern/draw_cache_impl_particles.c
@@ -584,7 +584,7 @@ static void particle_batch_cache_ensure_pos(Object *object,
for (curr_point = 0, i = 0, pa = psys->particles; i < psys->totpart; i++, pa++) {
state.time = DEG_get_ctime(draw_ctx->depsgraph);
- if (!psys_get_particle_state(&sim, curr_point, &state, 0)) {
+ if (!psys_get_particle_state(&sim, i, &state, 0)) {
continue;
}