Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/overlay/overlay_wireframe.c
| Show First 20 Lines • Show All 191 Lines • ▼ Show 20 Lines | if (geom || use_sculpt_pbvh) { | ||||
| } | } | ||||
| } | } | ||||
| if (dupli) { | if (dupli) { | ||||
| dupli->wire_shgrp = shgrp; | dupli->wire_shgrp = shgrp; | ||||
| dupli->wire_geom = geom; | dupli->wire_geom = geom; | ||||
| } | } | ||||
| } | } | ||||
| else if (is_mesh && (!is_edit_mode || has_edit_mesh_cage)) { | else if (use_wire && is_mesh && (!is_edit_mode || has_edit_mesh_cage)) { | ||||
| OVERLAY_ExtraCallBuffers *cb = OVERLAY_extra_call_buffer_get(vedata, ob); | OVERLAY_ExtraCallBuffers *cb = OVERLAY_extra_call_buffer_get(vedata, ob); | ||||
| Mesh *me = ob->data; | Mesh *me = ob->data; | ||||
| float *color; | float *color; | ||||
| DRW_object_wire_theme_get(ob, draw_ctx->view_layer, &color); | DRW_object_wire_theme_get(ob, draw_ctx->view_layer, &color); | ||||
| /* Draw loose geometry. */ | /* Draw loose geometry. */ | ||||
| if (me->totedge == 0 && me->totvert > 0) { | if (me->totedge == 0 && me->totvert > 0) { | ||||
| struct GPUBatch *geom = DRW_cache_mesh_all_verts_get(ob); | struct GPUBatch *geom = DRW_cache_mesh_all_verts_get(ob); | ||||
| ▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines | |||||