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.
This commit is contained in:
Sebastián Barschkis 2020-10-14 21:58:30 +02:00
parent 53792e32e7
commit 11a8a6d0e6
Notes: blender-bot 2023-02-14 03:59:42 +01:00
Referenced by commit 1f046e05b6, Fluid: Add versioning for fluid particle physics type
1 changed files with 1 additions and 0 deletions

View File

@ -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));