Cycles: svn merge -r39457:39669 https://svn.blender.org/svnroot/bf-blender/trunk...
[blender-staging.git] / source / blender / editors / space_view3d / drawobject.c
index 2fe2a95de83dd929b4c85296f77eab6c652bda09..a5bd5491f2f9f59e08c4e8dcafbcf570816e4f43 100644 (file)
@@ -2366,7 +2366,20 @@ static void draw_em_measure_stats(View3D *v3d, RegionView3D *rv3d, Object *ob, E
                        }
                }
        }
-       
+
+       /* useful for debugging index vs shape key index */
+#if 0
+       {
+               EditVert *eve;
+               int j;
+               UI_GetThemeColor3ubv(TH_DRAWEXTRA_FACEANG, col);
+               for(eve= em->verts.first, j= 0; eve; eve= eve->next, j++) {
+                       sprintf(val, "%d:%d", j, eve->keyindex);
+                       view3d_cached_text_draw_add(eve->co, val, 0, V3D_CACHE_TEXT_ASCII, col);
+               }
+       }
+#endif
+
        if(v3d->zbuf) {
                glEnable(GL_DEPTH_TEST);
                bglPolygonOffset(rv3d->dist, 0.0f);