[Bf-blender-cvs] [3524676] master: BMesh: increase subdiv smooth strength

Campbell Barton noreply at git.blender.org
Sun Apr 26 13:27:42 CEST 2015


Commit: 3524676036c370822344f1c80b191d34644b3745
Author: Campbell Barton
Date:   Sun Apr 26 21:20:25 2015 +1000
Branches: master
https://developer.blender.org/rB3524676036c370822344f1c80b191d34644b3745

BMesh: increase subdiv smooth strength

Now 1.0 gives near spherical output

===================================================================

M	source/blender/bmesh/operators/bmo_subdivide.c

===================================================================

diff --git a/source/blender/bmesh/operators/bmo_subdivide.c b/source/blender/bmesh/operators/bmo_subdivide.c
index 6f3f84a..410da65 100644
--- a/source/blender/bmesh/operators/bmo_subdivide.c
+++ b/source/blender/bmesh/operators/bmo_subdivide.c
@@ -183,7 +183,7 @@ static void alter_co(
 		float fac, len, val;
 
 		sub_v3_v3v3(dir, v_a->co, v_b->co);
-		len = 0.5f * normalize_v3(dir);
+		len = M_SQRT1_2 * normalize_v3(dir);
 
 		/* cosine angle */
 		fac = dot_v3v3(dir, v_a->no);




More information about the Bf-blender-cvs mailing list