diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-04-12 11:08:07 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-04-12 11:11:10 +0300 |
commit | cc0c5dbd91ec5036ddfc605beba74b277e874813 (patch) | |
tree | d0594d7e6f1870bfd54359326099bf1c7eaebe2d /source/blender/draw/modes/edit_mesh_mode.c | |
parent | 9e94479359fedf1bea19888e60bc4fffb9b96cc5 (diff) |
Cleanup: use DRW_cache_mesh prefix w/ mesh objects
Avoid confusion for non mesh types where verts/wire/surface might apply.
Other object types use this convention already.
Diffstat (limited to 'source/blender/draw/modes/edit_mesh_mode.c')
-rw-r--r-- | source/blender/draw/modes/edit_mesh_mode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/draw/modes/edit_mesh_mode.c b/source/blender/draw/modes/edit_mesh_mode.c index dd3f7083b79..dc53ca44f25 100644 --- a/source/blender/draw/modes/edit_mesh_mode.c +++ b/source/blender/draw/modes/edit_mesh_mode.c @@ -375,7 +375,7 @@ static void edit_mesh_add_ob_to_pass( struct Batch *geo_ovl_tris, *geo_ovl_ledges, *geo_ovl_lverts, *geo_ovl_fcenter; ToolSettings *tsettings = scene->toolsettings; - DRW_cache_wire_overlay_get(ob, &geo_ovl_tris, &geo_ovl_ledges, &geo_ovl_lverts); + DRW_cache_mesh_wire_overlay_get(ob, &geo_ovl_tris, &geo_ovl_ledges, &geo_ovl_lverts); DRW_shgroup_call_add(face_shgrp, geo_ovl_tris, ob->obmat); DRW_shgroup_call_add(ledges_shgrp, geo_ovl_ledges, ob->obmat); @@ -418,7 +418,7 @@ static void EDIT_MESH_cache_populate(void *vedata, Object *ob) face_mod = (do_occlude_wire) ? 0.0f : 1.0f; if (do_occlude_wire) { - geom = DRW_cache_surface_get(ob); + geom = DRW_cache_mesh_surface_get(ob); DRW_shgroup_call_add(stl->g_data->depth_shgrp_hidden_wire, geom, ob->obmat); } @@ -428,12 +428,12 @@ static void EDIT_MESH_cache_populate(void *vedata, Object *ob) } if (vnormals_do) { - geom = DRW_cache_verts_get(ob); + geom = DRW_cache_mesh_verts_get(ob); DRW_shgroup_call_add(stl->g_data->vnormals_shgrp, geom, ob->obmat); } if (lnormals_do) { - geom = DRW_cache_surface_verts_get(ob); + geom = DRW_cache_mesh_surface_verts_get(ob); DRW_shgroup_call_add(stl->g_data->lnormals_shgrp, geom, ob->obmat); } |