EditMesh: show angles of adjacent selected verts

Useful since moving vertices will change angles on adjacent,
unselected face-corners too.
This commit is contained in:
Campbell Barton 2015-07-14 06:30:02 +10:00
parent eee2d8e45c
commit 55374426c6
Notes: blender-bot 2023-02-14 08:54:35 +01:00
Referenced by issue #45356, edge Angle values in edit mode   2.75
1 changed files with 6 additions and 1 deletions

View 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];