Commit: 3121619a7479599d5680121edcd73442c81e14aa
Author: Campbell Barton
Date: Tue Mar 31 09:47:02 2015 +1100
Branches: temp-modifier-deltamush-experimental
https://developer.blender.org/rB3121619a7479599d5680121edcd73442c81e14aa
Double the strength of length-weight smoothing
Generally this has the same effect as simple-smooth at 1.0
===================================================================
M source/blender/modifiers/intern/MOD_correctivesmooth.c
===================================================================
diff --git a/source/blender/modifiers/intern/MOD_correctivesmooth.c
b/source/blender/modifiers/intern/MOD_correctivesmooth.c
index f1af481..9600050 100644
--- a/source/blender/modifiers/intern/MOD_correctivesmooth.c
+++ b/source/blender/modifiers/intern/MOD_correctivesmooth.c
@@ -267,7 +267,10 @@ static void smooth_iter__length_weight(
{
const float eps = FLT_EPSILON * 10.0f;
const unsigned int numEdges = (unsigned int)dm->getNumEdges(dm);
- const float lambda = csmd->lambda;
+ /* WARNING: the way this smoothing method works,
+ * its approx half as strong as the simple smoothing method,
+ * and 2.0 rarely spikes, so double the value for consistent behavior.
*/
+ const float lambda = csmd->lambda * 2.0f;
const MEdge *edges = dm->getEdgeArray(dm);
float *vertex_edge_count;
unsigned int i;
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs