Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/fluid.c
| Show First 20 Lines • Show All 1,539 Lines • ▼ Show 20 Lines | static void emit_from_particles(Object *flow_ob, | ||||
| FluidDomainSettings *fds, | FluidDomainSettings *fds, | ||||
| FluidFlowSettings *ffs, | FluidFlowSettings *ffs, | ||||
| FluidObjectBB *bb, | FluidObjectBB *bb, | ||||
| Depsgraph *depsgraph, | Depsgraph *depsgraph, | ||||
| Scene *scene, | Scene *scene, | ||||
| float dt) | float dt) | ||||
| { | { | ||||
| if (ffs && ffs->psys && ffs->psys->part && | if (ffs && ffs->psys && ffs->psys->part && | ||||
| ELEM(ffs->psys->part->type, PART_EMITTER, PART_FLUID)) // is particle system selected | ELEM(ffs->psys->part->type, PART_EMITTER, PART_FLUID)) /* Is particle system selected. */ | ||||
| { | { | ||||
| ParticleSimulationData sim; | ParticleSimulationData sim; | ||||
| ParticleSystem *psys = ffs->psys; | ParticleSystem *psys = ffs->psys; | ||||
| float *particle_pos; | float *particle_pos; | ||||
| float *particle_vel; | float *particle_vel; | ||||
| int totpart = psys->totpart, totchild; | int totpart = psys->totpart, totchild; | ||||
| int p = 0; | int p = 0; | ||||
| int valid_particles = 0; | int valid_particles = 0; | ||||
| ▲ Show 20 Lines • Show All 3,443 Lines • ▼ Show 20 Lines | if (tfmd->domain) { | ||||
| tfds->flame_max_temp = fds->flame_max_temp; | tfds->flame_max_temp = fds->flame_max_temp; | ||||
| copy_v3_v3(tfds->flame_smoke_color, fds->flame_smoke_color); | copy_v3_v3(tfds->flame_smoke_color, fds->flame_smoke_color); | ||||
| /* noise options */ | /* noise options */ | ||||
| tfds->noise_strength = fds->noise_strength; | tfds->noise_strength = fds->noise_strength; | ||||
| tfds->noise_pos_scale = fds->noise_pos_scale; | tfds->noise_pos_scale = fds->noise_pos_scale; | ||||
| tfds->noise_time_anim = fds->noise_time_anim; | tfds->noise_time_anim = fds->noise_time_anim; | ||||
| tfds->noise_scale = fds->noise_scale; | tfds->noise_scale = fds->noise_scale; | ||||
| tfds->noise_type = fds->noise_type; | |||||
| /* liquid domain options */ | /* liquid domain options */ | ||||
| tfds->flip_ratio = fds->flip_ratio; | tfds->flip_ratio = fds->flip_ratio; | ||||
| tfds->particle_randomness = fds->particle_randomness; | tfds->particle_randomness = fds->particle_randomness; | ||||
| tfds->particle_number = fds->particle_number; | tfds->particle_number = fds->particle_number; | ||||
| tfds->particle_minimum = fds->particle_minimum; | tfds->particle_minimum = fds->particle_minimum; | ||||
| tfds->particle_maximum = fds->particle_maximum; | tfds->particle_maximum = fds->particle_maximum; | ||||
| tfds->particle_radius = fds->particle_radius; | tfds->particle_radius = fds->particle_radius; | ||||
| ▲ Show 20 Lines • Show All 187 Lines • Show Last 20 Lines | |||||