Page MenuHome
Paste P963

Possible fix for T63356
ActivePublic

Authored by Campbell Barton (campbellbarton) on May 2 2019, 6:59 AM.
diff --git a/source/blender/draw/modes/object_mode.c b/source/blender/draw/modes/object_mode.c
index ee2c660ca06..9e81ccc6930 100644
--- a/source/blender/draw/modes/object_mode.c
+++ b/source/blender/draw/modes/object_mode.c
@@ -3196,6 +3196,19 @@ static void OBJECT_cache_populate(void *vedata, Object *ob)
}
}
}
+
+ if (!is_edit_mode && DRW_state_is_select()) {
+ if (me->totvert && me->totedge) {
+ /* Check edges because we may have already drawn loose verts. */
+ GPUBatch *geom = DRW_cache_mesh_all_verts_get(ob);
+ DRW_shgroup_call_object_add(sgl->points, geom, ob);
+ }
+ if (me->totedge && me->totpoly) {
+ /* Check totpoly because we may have already drawn loose edges. */
+ GPUBatch *geom = DRW_cache_mesh_all_edges_get(ob);
+ DRW_shgroup_call_object_add(sgl->wire, geom, ob);
+ }
+ }
break;
}
case OB_SURF: {