[Bf-blender-cvs] [1c1200b] temp_merge_gooseberry_hair: Inverted effect of target density was unstable, the divergence term needs to be substracted instead.
noreply at git.blender.org
Mon Jan 19 20:51:08 CET 2015
Author: Lukas Tönne
Date: Fri Nov 14 17:11:33 2014 +0100
Inverted effect of target density was unstable, the divergence term
needs to be substracted instead.
diff --git a/source/blender/physics/intern/hair_volume.cpp b/source/blender/physics/intern/hair_volume.cpp
index 4f2f6a3..91198cf 100644
@@ -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;
More information about the Bf-blender-cvs