Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/modes/edit_curve_mode.c
| Show First 20 Lines • Show All 264 Lines • ▼ Show 20 Lines | if (BKE_object_is_in_editmode(ob)) { | ||||
| } | } | ||||
| else { | else { | ||||
| wire_shgrp = stl->g_data->wire_shgrp; | wire_shgrp = stl->g_data->wire_shgrp; | ||||
| wire_normals_shgrp = stl->g_data->wire_normals_shgrp; | wire_normals_shgrp = stl->g_data->wire_normals_shgrp; | ||||
| } | } | ||||
| geom = DRW_cache_curve_edge_wire_get(ob); | geom = DRW_cache_curve_edge_wire_get(ob); | ||||
| if (geom) { | if (geom) { | ||||
| DRW_shgroup_call(wire_shgrp, geom, ob); | DRW_shgroup_call_no_cull(wire_shgrp, geom, ob); | ||||
| } | } | ||||
| if ((cu->flag & CU_3D) && (v3d->overlay.edit_flag & V3D_OVERLAY_EDIT_CU_NORMALS) != 0) { | if ((cu->flag & CU_3D) && (v3d->overlay.edit_flag & V3D_OVERLAY_EDIT_CU_NORMALS) != 0) { | ||||
| geom = DRW_cache_curve_edge_normal_get(ob); | geom = DRW_cache_curve_edge_normal_get(ob); | ||||
| DRW_shgroup_call_instances(wire_normals_shgrp, ob, geom, 2); | DRW_shgroup_call_instances(wire_normals_shgrp, ob, geom, 2); | ||||
| } | } | ||||
| geom = DRW_cache_curve_edge_overlay_get(ob); | geom = DRW_cache_curve_edge_overlay_get(ob); | ||||
| if (geom) { | if (geom) { | ||||
| DRW_shgroup_call(stl->g_data->overlay_edge_shgrp, geom, ob); | DRW_shgroup_call_no_cull(stl->g_data->overlay_edge_shgrp, geom, ob); | ||||
| } | } | ||||
| geom = DRW_cache_curve_vert_overlay_get(ob, stl->g_data->show_handles); | geom = DRW_cache_curve_vert_overlay_get(ob, stl->g_data->show_handles); | ||||
| if (geom) { | if (geom) { | ||||
| DRW_shgroup_call(stl->g_data->overlay_vert_shgrp, geom, ob); | DRW_shgroup_call_no_cull(stl->g_data->overlay_vert_shgrp, geom, ob); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| if (ob->type == OB_SURF) { | if (ob->type == OB_SURF) { | ||||
| if (BKE_object_is_in_editmode(ob)) { | if (BKE_object_is_in_editmode(ob)) { | ||||
| struct GPUBatch *geom = DRW_cache_curve_edge_overlay_get(ob); | struct GPUBatch *geom = DRW_cache_curve_edge_overlay_get(ob); | ||||
| if (geom) { | if (geom) { | ||||
| DRW_shgroup_call(stl->g_data->overlay_edge_shgrp, geom, ob); | DRW_shgroup_call_no_cull(stl->g_data->overlay_edge_shgrp, geom, ob); | ||||
| } | } | ||||
| geom = DRW_cache_curve_vert_overlay_get(ob, false); | geom = DRW_cache_curve_vert_overlay_get(ob, false); | ||||
| if (geom) { | if (geom) { | ||||
| DRW_shgroup_call(stl->g_data->overlay_vert_shgrp, geom, ob); | DRW_shgroup_call_no_cull(stl->g_data->overlay_vert_shgrp, geom, ob); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| /* Draw time ! Control rendering pipeline from here */ | /* Draw time ! Control rendering pipeline from here */ | ||||
| static void EDIT_CURVE_draw_scene(void *vedata) | static void EDIT_CURVE_draw_scene(void *vedata) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines | |||||