Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastián Barschkis <sebbas@sebbas.org>2020-10-14 22:58:30 +0300
committerSebastián Barschkis <sebbas@sebbas.org>2020-10-14 22:58:58 +0300
commit11a8a6d0e6b5bc1d60b5306c6efd8daf9e038327 (patch)
treeb47e8c03454b98bdbed261bb4d1231c32a6eaf6c /source/blender/blenkernel
parent53792e32e7dc75bcbb6551a5c99192dd8e4787ff (diff)
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.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/fluid.c1
1 files changed, 1 insertions, 0 deletions
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));