diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-12-14 04:06:36 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-12-14 04:06:36 +0300 |
commit | 99b7dc60bef5ff8680889ae8bcca1a8b14023402 (patch) | |
tree | 12b8df1f28936be374ff7c67929f7d7c2af6b8c5 /source/blender/blenkernel/intern/particle.c | |
parent | 1f953478828a9bfd1faf78df68e5abb1680858c5 (diff) |
Fix missing update for particles w/ fluids
D2955 by @GonVas
Diffstat (limited to 'source/blender/blenkernel/intern/particle.c')
-rw-r--r-- | source/blender/blenkernel/intern/particle.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/particle.c b/source/blender/blenkernel/intern/particle.c index 8c94cdfe784..cbbb44c55cb 100644 --- a/source/blender/blenkernel/intern/particle.c +++ b/source/blender/blenkernel/intern/particle.c @@ -663,8 +663,9 @@ void psys_render_set(Object *ob, ParticleSystem *psys, float viewmat[4][4], floa psys->renderdata = data; /* Hair can and has to be recalculated if everything isn't displayed. */ - if (psys->part->disp != 100 && psys->part->type == PART_HAIR) + if (psys->part->disp != 100 && ELEM(psys->part->type, PART_HAIR, PART_FLUID)) { psys->recalc |= PSYS_RECALC_RESET; + } } void psys_render_restore(Object *ob, ParticleSystem *psys) @@ -737,7 +738,7 @@ void psys_render_restore(Object *ob, ParticleSystem *psys) if (disp != render_disp) { /* Hair can and has to be recalculated if everything isn't displayed. */ - if (psys->part->type == PART_HAIR) { + if (ELEM(psys->part->type, PART_HAIR, PART_FLUID)) { psys->recalc |= PSYS_RECALC_RESET; } else { |