[Bf-blender-cvs] [eacf63c96f7] blender2.8: Particle System: Pass correct particle index when drawing
Sybren A. Stüvel
noreply at git.blender.org
Wed May 16 16:10:44 CEST 2018
Commit: eacf63c96f7ce89a3e374b41fbaa036eabc13147
Author: Sybren A. Stüvel
Date: Wed May 16 16:09:27 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBeacf63c96f7ce89a3e374b41fbaa036eabc13147
Particle System: Pass correct particle index when drawing
Passing the wrong index caused the particles to stop being shown when the
first particle dies.
===================================================================
M source/blender/draw/intern/draw_cache_impl_particles.c
===================================================================
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;
}
More information about the Bf-blender-cvs
mailing list