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-11-14 19:11:33 +0300
committerLukas Tönne <lukas.toenne@gmail.com>2015-01-20 11:30:08 +0300
commit2da21b30aecc8b5d355aeb435173f98f2b25fd8c (patch)
tree9f3408bdb4760c32170f655ffe695019fa8aee6c /source/blender/physics/intern/hair_volume.cpp
parent325990ff6e57bfbac9c3aab5d12f13670f9ef246 (diff)
Inverted effect of target density was unstable, the divergence term
needs to be substracted instead.
Diffstat (limited to 'source/blender/physics/intern/hair_volume.cpp')
-rw-r--r--source/blender/physics/intern/hair_volume.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/physics/intern/hair_volume.cpp b/source/blender/physics/intern/hair_volume.cpp
index 4f2f6a33c52..91198cfaff0 100644
--- a/source/blender/physics/intern/hair_volume.cpp
+++ b/source/blender/physics/intern/hair_volume.cpp
@@ -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
{