Fix missing update for particles w/ fluids
authorCampbell Barton <ideasman42@gmail.com>
Thu, 14 Dec 2017 01:06:36 +0000 (12:06 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 14 Dec 2017 01:06:36 +0000 (12:06 +1100)
D2955 by @GonVas

source/blender/blenkernel/intern/particle.c

index 8c94cdfe784d6cc18b76ea6bbe2ce2cca17db702..cbbb44c55cb47121c1b45dfc9f277829bbc080b5 100644 (file)
@@ -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 {