diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-12-01 10:52:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-12-01 10:53:26 +0300 |
commit | 9e56c570c3fbca4bae9a1da24828b6e640299f99 (patch) | |
tree | 5698d3d2dc2f8ae2dc77c070d9beefa4e69e109e /source/blender/editors/space_view3d/view3d_snap.c | |
parent | 2f80d304b0d50ea25367219b339bcfaa7958bbf4 (diff) |
Cleanup: use more logical names for View3D.around
D1651 (own patch)
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_snap.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_snap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/space_view3d/view3d_snap.c b/source/blender/editors/space_view3d/view3d_snap.c index 8bb84d00c83..e8e7d3c62fb 100644 --- a/source/blender/editors/space_view3d/view3d_snap.c +++ b/source/blender/editors/space_view3d/view3d_snap.c @@ -223,7 +223,7 @@ static int snap_sel_to_curs_exec(bContext *C, wmOperator *op) cursor_global = ED_view3d_cursor3d_get(scene, v3d); if (use_offset) { - if ((v3d && v3d->around == V3D_ACTIVE) && + if ((v3d && v3d->around == V3D_AROUND_ACTIVE) && snap_calc_active_center(C, true, center_global)) { /* pass */ @@ -543,7 +543,7 @@ static bool snap_curs_to_sel_ex(bContext *C, float cursor[3]) minmax_v3v3_v3(min, max, vec); } - if (v3d->around == V3D_CENTROID) { + if (v3d->around == V3D_AROUND_CENTER_MEAN) { mul_v3_fl(centroid, 1.0f / (float)tvs.transverts_tot); copy_v3_v3(cursor, centroid); } @@ -595,7 +595,7 @@ static bool snap_curs_to_sel_ex(bContext *C, float cursor[3]) return false; } - if (v3d->around == V3D_CENTROID) { + if (v3d->around == V3D_AROUND_CENTER_MEAN) { mul_v3_fl(centroid, 1.0f / (float)count); copy_v3_v3(cursor, centroid); } |