diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-08-13 08:34:58 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-08-13 08:34:58 +0400 |
commit | 3529913629c83c27627d93a186bd5e7638dd839a (patch) | |
tree | 6ae306606f339b287b864416de501bb2fbafbd18 /source/blender/modifiers/intern/MOD_screw.c | |
parent | 3e90d7971adf2ca16790c34520b8d98c0ff85ef8 (diff) |
Math Lib: name signed versions of dist_to_plane_v3 explicitly
also add unsigned versions
Diffstat (limited to 'source/blender/modifiers/intern/MOD_screw.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_screw.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/modifiers/intern/MOD_screw.c b/source/blender/modifiers/intern/MOD_screw.c index ff7cc01232b..5900baaf537 100644 --- a/source/blender/modifiers/intern/MOD_screw.c +++ b/source/blender/modifiers/intern/MOD_screw.c @@ -362,7 +362,7 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob, if (ltmd->flag & MOD_SCREW_UV_STRETCH_V) { for (i = 0, mv_orig = mvert_orig; i < totvert; i++, mv_orig++) { - const float v = dist_squared_to_plane_v3(mv_orig->co, uv_axis_plane); + const float v = dist_signed_squared_to_plane_v3(mv_orig->co, uv_axis_plane); uv_v_minmax[0] = min_ff(v, uv_v_minmax[0]); uv_v_minmax[1] = max_ff(v, uv_v_minmax[1]); } @@ -897,8 +897,8 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob, } if (has_mloop_orig == false && mloopuv_layers_tot) { - uv_v_offset_a = dist_to_plane_v3(mvert_new[medge_new[i].v1].co, uv_axis_plane); - uv_v_offset_b = dist_to_plane_v3(mvert_new[medge_new[i].v2].co, uv_axis_plane); + uv_v_offset_a = dist_signed_to_plane_v3(mvert_new[medge_new[i].v1].co, uv_axis_plane); + uv_v_offset_b = dist_signed_to_plane_v3(mvert_new[medge_new[i].v2].co, uv_axis_plane); if (ltmd->flag & MOD_SCREW_UV_STRETCH_V) { uv_v_offset_a = (uv_v_offset_a - uv_v_minmax[0]) * uv_v_range_inv; |