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
This commit is contained in:
Lukas Tönne 2014-10-31 15:20:45 +01:00
parent c3968861b3
commit 54c69c4ed8
1 changed files with 2 additions and 0 deletions

View File

@ -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);