Fix [#31432] Angles values stuck at 60 degrees.
authorBastien Montagne <montagne29@wanadoo.fr>
Wed, 16 May 2012 20:35:09 +0000 (20:35 +0000)
committerBastien Montagne <montagne29@wanadoo.fr>
Wed, 16 May 2012 20:35:09 +0000 (20:35 +0000)
source/blender/editors/space_view3d/drawobject.c

index fdf438330f64590be09eb53b50c0d73f7f370dc8..00622f368f091966ed8488133f240202504734be 100644 (file)
@@ -2987,7 +2987,7 @@ static void draw_em_measure_stats(View3D *v3d, Object *ob, BMEditMesh *em, UnitS
                                                        interp_v3_v3v3(fvec, vmid, v2, 0.8f);
                                                }
                                                else {
-                                                       angle = angle_v3v3v3(loop->prev->v->co, loop->v->co, loop->v->co);
+                                                       angle = angle_v3v3v3(loop->prev->v->co, loop->v->co, loop->next->v->co);
                                                        interp_v3_v3v3(fvec, vmid, loop->v->co, 0.8f);
                                                }