Inverted effect of target density was unstable, the divergence term

needs to be substracted instead.
This commit is contained in:
Lukas Tönne 2014-11-14 17:11:33 +01:00
parent 325990ff6e
commit 2da21b30ae
1 changed files with 1 additions and 1 deletions

View File

@ -682,7 +682,7 @@ bool BPH_hair_volume_solve_divergence(HairGrid *grid, float dt, float target_den
* and resulting pressure gradient should be multiplied by the (inverse) density;
* however, this is already included in the weighting of hair velocities on the grid!
*/
B[u] = divergence + target;
B[u] = divergence - target;
#if 0
{