[Bf-blender-cvs] [99b7dc60bef] master: Fix missing update for particles w/ fluids

Campbell Barton noreply at git.blender.org
Thu Dec 14 02:09:08 CET 2017


Commit: 99b7dc60bef5ff8680889ae8bcca1a8b14023402
Author: Campbell Barton
Date:   Thu Dec 14 12:06:36 2017 +1100
Branches: master
https://developer.blender.org/rB99b7dc60bef5ff8680889ae8bcca1a8b14023402

Fix missing update for particles w/ fluids

D2955 by @GonVas

===================================================================

M	source/blender/blenkernel/intern/particle.c

===================================================================

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 {



More information about the Bf-blender-cvs mailing list