diff options
author | Lukas Tönne <lukas.toenne@gmail.com> | 2014-10-31 17:20:45 +0300 |
---|---|---|
committer | Lukas Tönne <lukas.toenne@gmail.com> | 2015-01-20 11:30:05 +0300 |
commit | 54c69c4ed83b00cf04864169c5dd2ce8f3110a45 (patch) | |
tree | e185701ea53127f38b40617d12a92cd59fdeb2c4 | |
parent | c3968861b3e5a81e138003cca2b51a040a0ed454 (diff) |
Fill the hair volume grid with the _new_ velocities from the first
solver step, instead of using the previous step's velocities.
Conflicts:
source/blender/physics/intern/BPH_mass_spring.cpp
-rw-r--r-- | source/blender/physics/intern/BPH_mass_spring.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/physics/intern/BPH_mass_spring.cpp b/source/blender/physics/intern/BPH_mass_spring.cpp index 55475d06d8d..b7ee42d6ea5 100644 --- a/source/blender/physics/intern/BPH_mass_spring.cpp +++ b/source/blender/physics/intern/BPH_mass_spring.cpp @@ -617,6 +617,8 @@ static void cloth_continuum_step(ClothModifierData *clmd) float x[3], v[3]; BPH_mass_spring_get_motion_state(data, i, x, v); + BPH_mass_spring_get_position(data, i, x); + BPH_mass_spring_get_new_velocity(data, i, v); BPH_hair_volume_add_vertex(vertex_grid, x, v); } BPH_hair_volume_normalize_vertex_grid(vertex_grid); |