[Bf-blender-cvs] [e239912] hair_immediate_fixes: Set the length threshold for hair simulation to 10% again (from 1%).
Lukas Tönne
noreply at git.blender.org
Fri Sep 26 10:10:25 CEST 2014
Commit: e239912c066ad0d21d1686cc37f31e5807880b53
Author: Lukas Tönne
Date: Fri Sep 26 10:08:56 2014 +0200
Branches: hair_immediate_fixes
https://developer.blender.org/rBe239912c066ad0d21d1686cc37f31e5807880b53
Set the length threshold for hair simulation to 10% again (from 1%).
With the default 5 substeps the simulation can otherwise still become
unstable. This is just a preliminary measure anyway until the length
variance can be fixed properly.
===================================================================
M source/blender/blenkernel/intern/particle_system.c
===================================================================
diff --git a/source/blender/blenkernel/intern/particle_system.c b/source/blender/blenkernel/intern/particle_system.c
index 3a3a681..7904911 100644
--- a/source/blender/blenkernel/intern/particle_system.c
+++ b/source/blender/blenkernel/intern/particle_system.c
@@ -4002,7 +4002,7 @@ static bool psys_hair_use_simulation(ParticleData *pa, float max_length)
* The hair system should always make sure the hair segments have reasonable length ratios,
* but this can happen in old files when e.g. cutting hair.
*/
- const float min_length = 0.01f * max_length;
+ const float min_length = 0.1f * max_length;
HairKey *key;
int k;
More information about the Bf-blender-cvs
mailing list