[Bf-blender-cvs] [11a8a6d0e6b] master: Fluid: Add phystype to fluid particle settings

Sebastián Barschkis noreply at git.blender.org
Wed Oct 14 21:59:08 CEST 2020


Commit: 11a8a6d0e6b5bc1d60b5306c6efd8daf9e038327
Author: Sebastián Barschkis
Date:   Wed Oct 14 21:58:30 2020 +0200
Branches: master
https://developer.blender.org/rB11a8a6d0e6b5bc1d60b5306c6efd8daf9e038327

Fluid: Add phystype to fluid particle settings

When creating a particle system to display simulated particles, the phystype needs to be set to 'no physics' so that particle positions are just copied and not integrated.

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

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

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

diff --git a/source/blender/blenkernel/intern/fluid.c b/source/blender/blenkernel/intern/fluid.c
index 79f99df8e45..803a99dd45f 100644
--- a/source/blender/blenkernel/intern/fluid.c
+++ b/source/blender/blenkernel/intern/fluid.c
@@ -4516,6 +4516,7 @@ void BKE_fluid_particle_system_create(struct Main *bmain,
   part->totpart = 0;
   part->draw_size = 0.01f; /* Make fluid particles more subtle in viewport. */
   part->draw_col = PART_DRAW_COL_VEL;
+  part->phystype = PART_PHYS_NO; /* No physics needed, part system only used to display data. */
   psys->part = part;
   psys->pointcache = BKE_ptcache_add(&psys->ptcaches);
   BLI_strncpy(psys->name, parts_name, sizeof(psys->name));



More information about the Bf-blender-cvs mailing list