Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Tönne <lukas.toenne@gmail.com>2014-10-31 17:20:45 +0300
committerLukas Tönne <lukas.toenne@gmail.com>2015-01-20 11:30:05 +0300
commit54c69c4ed83b00cf04864169c5dd2ce8f3110a45 (patch)
treee185701ea53127f38b40617d12a92cd59fdeb2c4 /source/blender/physics/intern/BPH_mass_spring.cpp
parentc3968861b3e5a81e138003cca2b51a040a0ed454 (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
Diffstat (limited to 'source/blender/physics/intern/BPH_mass_spring.cpp')
-rw-r--r--source/blender/physics/intern/BPH_mass_spring.cpp2
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);