Sculpt: Modify damping using the simulation factor of the cloth brush

This helps blending artifacts with dynamic simulation areas as the
damping increases when the vertex.

Reviewed By: mont29

Differential Revision: https://developer.blender.org/D9084
This commit is contained in:
Pablo Dobarro 2020-10-01 22:52:55 +02:00
parent 628dc91c48
commit a2b517cb11
1 changed files with 1 additions and 1 deletions

View File

@ -715,7 +715,7 @@ static void do_cloth_brush_solve_simulation_task_cb_ex(
float pos_diff[3];
sub_v3_v3v3(pos_diff, cloth_sim->pos[i], cloth_sim->prev_pos[i]);
mul_v3_fl(pos_diff, (1.0f - cloth_sim->damping));
mul_v3_fl(pos_diff, (1.0f - cloth_sim->damping) * sim_factor);
const float mask_v = (1.0f - (vd.mask ? *vd.mask : 0.0f)) *
SCULPT_automasking_factor_get(ss, vd.index);