BMesh: increase subdiv smooth strength
authorCampbell Barton <ideasman42@gmail.com>
Sun, 26 Apr 2015 11:20:25 +0000 (21:20 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 26 Apr 2015 11:26:45 +0000 (21:26 +1000)
Now 1.0 gives near spherical output

source/blender/bmesh/operators/bmo_subdivide.c

index 6f3f84a3f9b7185ab5fcd55aece741d2eeb96a52..410da65f8284c574cf26eb1b219fad7677b4c6a2 100644 (file)
@@ -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);