Fix missing update for particles w/ fluids

D2955 by @GonVas
This commit is contained in:
Campbell Barton 2017-12-14 12:06:36 +11:00 committed by Bastien Montagne
parent 52a5daa404
commit 84361a0709
1 changed files with 3 additions and 2 deletions

View 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 {