Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_view3d/view3d_draw_legacy.c
| Show First 20 Lines • Show All 875 Lines • ▼ Show 20 Lines | void ED_view3d_draw_depth_gpencil( | ||||
| /* Setup view matrix. */ | /* Setup view matrix. */ | ||||
| ED_view3d_draw_setup_view(NULL, depsgraph, scene, ar, v3d, NULL, NULL, NULL); | ED_view3d_draw_setup_view(NULL, depsgraph, scene, ar, v3d, NULL, NULL, NULL); | ||||
| GPU_clear(GPU_DEPTH_BIT); | GPU_clear(GPU_DEPTH_BIT); | ||||
| GPU_depth_test(true); | GPU_depth_test(true); | ||||
| if (v3d->flag2 & V3D_SHOW_GPENCIL) { | if (v3d->flag2 & V3D_SHOW_ANNOTATION) { | ||||
| ED_gpencil_draw_view3d(NULL, scene, view_layer, depsgraph, v3d, ar, true); | ED_gpencil_draw_view3d(NULL, scene, view_layer, depsgraph, v3d, ar, true); | ||||
| } | } | ||||
| GPU_depth_test(false); | GPU_depth_test(false); | ||||
| } | } | ||||
| /* *********************** customdata **************** */ | /* *********************** customdata **************** */ | ||||
| ▲ Show 20 Lines • Show All 177 Lines • Show Last 20 Lines | |||||