diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-04-26 12:19:05 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-04-26 12:20:34 +0300 |
commit | 2374cb380b83ce97db5545eb0c4f3ccd51e87d9c (patch) | |
tree | 419138af6a408cffea22475b7b23564af94de18f /source/blender/bmesh | |
parent | e1ca127419fce5a717215d39ecfc6fdb040bbc84 (diff) |
BMesh: subdiv smooth, use simpler even calculation
Was checking all vertices adjacent faces,
now just compare the difference between normal angles.
Also default to inverse-square for loopcut-subdiv falloff.
Diffstat (limited to 'source/blender/bmesh')
-rw-r--r-- | source/blender/bmesh/operators/bmo_subdivide.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/bmesh/operators/bmo_subdivide.c b/source/blender/bmesh/operators/bmo_subdivide.c index 6a7b0ddf7ad..306cdae49fe 100644 --- a/source/blender/bmesh/operators/bmo_subdivide.c +++ b/source/blender/bmesh/operators/bmo_subdivide.c @@ -198,7 +198,7 @@ static void alter_co( val = bmesh_subd_falloff_calc(params->smooth_falloff, val); if (params->use_smooth_even) { - val *= BM_vert_calc_shell_factor(v); + val *= shell_v3v3_mid_normalized_to_dist(v_a->no, v_b->no); } mul_v3_fl(tvec, params->smooth * val * len); |