diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-08-26 05:27:17 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-08-26 05:36:58 +0300 |
commit | 84f048fda566c2098ec1baa2ff1ad6c00b7395d5 (patch) | |
tree | 187bede237f476ef08d646f1e0ecc927c58b659f /source/blender/blenkernel/intern/particle_system.c | |
parent | 42032db1c220e2a10d2d80879ec0037b4e12257e (diff) |
Cleanup: use C style comments for descriptive text
Diffstat (limited to 'source/blender/blenkernel/intern/particle_system.c')
-rw-r--r-- | source/blender/blenkernel/intern/particle_system.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/particle_system.c b/source/blender/blenkernel/intern/particle_system.c index 60edb78f8ba..8986847a034 100644 --- a/source/blender/blenkernel/intern/particle_system.c +++ b/source/blender/blenkernel/intern/particle_system.c @@ -1638,10 +1638,10 @@ static void sph_springs_modify(ParticleSystem *psys, float dtime) Lij = spring->rest_length; d = yield_ratio * timefix * Lij; - if (rij > Lij + d) { // Stretch + if (rij > Lij + d) { /* Stretch */ spring->rest_length += plasticity * (rij - Lij - d) * timefix; } - else if (rij < Lij - d) { // Compress + else if (rij < Lij - d) { /* Compress */ spring->rest_length -= plasticity * (Lij - d - rij) * timefix; } @@ -2209,7 +2209,7 @@ static void sph_integrate(ParticleSimulationData *sim, SPHData *sphdata) { ParticleSettings *part = sim->psys->part; - // float timestep = psys_get_timestep(sim); // UNUSED + // float timestep = psys_get_timestep(sim); /* UNUSED */ float pa_mass = part->mass * ((part->flag & PART_SIZEMASS) ? pa->size : 1.0f); float dtime = dfra * psys_get_timestep(sim); // int steps = 1; // UNUSED @@ -2218,7 +2218,7 @@ static void sph_integrate(ParticleSimulationData *sim, sphdata->pa = pa; sphdata->mass = pa_mass; sphdata->pass = 0; - // sphdata.element_size and sphdata.flow are set in the callback. + /* #sphdata.element_size and #sphdata.flow are set in the callback. */ /* Restore previous state and treat gravity & effectors as external acceleration. */ sub_v3_v3v3(effector_acceleration, pa->state.vel, pa->prev_state.vel); |