Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/modes/paint_vertex_mode.c
| Show First 20 Lines • Show All 312 Lines • ▼ Show 20 Lines | if ((ob->type == OB_MESH) && (ob == draw_ctx->obact)) { | ||||
| } | } | ||||
| if (geom != NULL) { | if (geom != NULL) { | ||||
| DRW_shgroup_call(stl->g_data->by_mode[draw_mode].color_shgrp, geom, ob); | DRW_shgroup_call(stl->g_data->by_mode[draw_mode].color_shgrp, geom, ob); | ||||
| } | } | ||||
| if (use_face_sel || use_wire) { | if (use_face_sel || use_wire) { | ||||
| DRWShadingGroup *shgrp = use_face_sel ? stl->g_data->by_mode[draw_mode].lwire_select_shgrp : | DRWShadingGroup *shgrp = use_face_sel ? stl->g_data->by_mode[draw_mode].lwire_select_shgrp : | ||||
| stl->g_data->by_mode[draw_mode].lwire_shgrp; | stl->g_data->by_mode[draw_mode].lwire_shgrp; | ||||
| geom = DRW_cache_mesh_surface_edges_get(ob); | geom = DRW_cache_mesh_surface_edges_get(ob, false); | ||||
| DRW_shgroup_call(shgrp, geom, ob); | DRW_shgroup_call(shgrp, geom, ob); | ||||
| } | } | ||||
| if (use_face_sel) { | if (use_face_sel) { | ||||
| geom = DRW_cache_mesh_surface_get(ob); | geom = DRW_cache_mesh_surface_get(ob); | ||||
| DRW_shgroup_call(stl->g_data->face_select_shgrp, geom, ob); | DRW_shgroup_call(stl->g_data->face_select_shgrp, geom, ob); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines | |||||