Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-12-14 03:01:01 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-12-14 03:06:34 +0300
commitaa3c4b4cb64f5b14e5167237b1c807b5ecf658bb (patch)
treedde92dceaae332c38e92353c4758e0926be577d4 /source/blender/editors/space_view3d/view3d_snap.c
parent6e2d9ef2db3776cf5f6f8a8f685da0aa668f9ae6 (diff)
Missed last commit
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_snap.c')
-rw-r--r--source/blender/editors/space_view3d/view3d_snap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/view3d_snap.c b/source/blender/editors/space_view3d/view3d_snap.c
index 80586217691..e58ae3eb53a 100644
--- a/source/blender/editors/space_view3d/view3d_snap.c
+++ b/source/blender/editors/space_view3d/view3d_snap.c
@@ -579,7 +579,7 @@ static bool snap_curs_to_sel_ex(bContext *C, float cursor[3])
minmax_v3v3_v3(min, max, vec);
}
- if (v3d->around == V3D_AROUND_CENTER_MEAN) {
+ if (v3d->around == V3D_AROUND_CENTER_MEDIAN) {
mul_v3_fl(centroid, 1.0f / (float)tvs.transverts_tot);
copy_v3_v3(cursor, centroid);
}
@@ -631,7 +631,7 @@ static bool snap_curs_to_sel_ex(bContext *C, float cursor[3])
return false;
}
- if (v3d->around == V3D_AROUND_CENTER_MEAN) {
+ if (v3d->around == V3D_AROUND_CENTER_MEDIAN) {
mul_v3_fl(centroid, 1.0f / (float)count);
copy_v3_v3(cursor, centroid);
}