From 99b7dc60bef5ff8680889ae8bcca1a8b14023402 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 14 Dec 2017 12:06:36 +1100 Subject: [PATCH] Fix missing update for particles w/ fluids D2955 by @GonVas --- source/blender/blenkernel/intern/particle.c | 5 +++-- 1 file 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 {