Fix missing assignments in object mode select id drawing
authorCampbell Barton <ideasman42@gmail.com>
Mon, 20 May 2019 02:14:30 +0000 (12:14 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 20 May 2019 02:14:30 +0000 (12:14 +1000)
The code currently doesn't run, needed for upgrading all selection
code to use the new API's.

source/blender/draw/intern/draw_manager.c

index 4fa29ac6c376d989ba1cdeac5dcfa655fbf89c3b..eb5645137b5192aa3bfc3d74ce1eb8b5fda3d61c 100644 (file)
@@ -2860,6 +2860,7 @@ void DRW_draw_select_id_object(Scene *scene,
           draw_mesh_face(geom_faces, 0, false, world_clip_planes);
           draw_mesh_verts(geom_verts, 1, world_clip_planes);
 
+          *r_face_offset = *r_edge_offset = initial_offset;
           *r_vert_offset = me_eval->totvert + 1;
         }
         else {
@@ -2869,6 +2870,7 @@ void DRW_draw_select_id_object(Scene *scene,
           draw_mesh_face(geom_faces, initial_offset, true, world_clip_planes);
 
           *r_face_offset = initial_offset + me_eval->totpoly;
+          *r_edge_offset = *r_vert_offset = *r_face_offset;
         }
       }
       break;