EditMesh: show angles of adjacent selected verts
authorCampbell Barton <ideasman42@gmail.com>
Mon, 13 Jul 2015 20:30:02 +0000 (06:30 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 13 Jul 2015 20:30:02 +0000 (06:30 +1000)
Useful since moving vertices will change angles on adjacent,
unselected face-corners too.

source/blender/editors/space_view3d/drawobject.c

index 988d4eb4959901712b5a3b0b8525f0a85a0f4a2b..265b6874a8d88b9e7c023bf04cb4f2af9d4993d9 100644 (file)
@@ -3578,7 +3578,12 @@ static void draw_em_measure_stats(ARegion *ar, View3D *v3d, Object *ob, BMEditMe
                                bool is_first = true;
 
                                BM_ITER_ELEM (loop, &liter, efa, BM_LOOPS_OF_FACE) {
-                                       if (is_face_sel || (do_moving && BM_elem_flag_test(loop->v, BM_ELEM_SELECT))) {
+                                       if (is_face_sel ||
+                                           (do_moving &&
+                                            (BM_elem_flag_test(loop->v, BM_ELEM_SELECT) ||
+                                             BM_elem_flag_test(loop->prev->v, BM_ELEM_SELECT) ||
+                                             BM_elem_flag_test(loop->next->v, BM_ELEM_SELECT))))
+                                       {
                                                float angle;
                                                float v2_local[3];