Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/select/select_engine.c
| Show First 20 Lines • Show All 141 Lines • ▼ Show 20 Lines | projmat_from_subregion(winmat, | ||||
| e_data.context.last_rect.ymin, | e_data.context.last_rect.ymin, | ||||
| e_data.context.last_rect.ymax, | e_data.context.last_rect.ymax, | ||||
| winmat_subregion); | winmat_subregion); | ||||
| stl->g_data->view_subregion = DRW_view_create(viewmat, winmat_subregion, NULL, NULL, NULL); | stl->g_data->view_subregion = DRW_view_create(viewmat, winmat_subregion, NULL, NULL, NULL); | ||||
| /* Create view with depth offset */ | /* Create view with depth offset */ | ||||
| stl->g_data->view_faces = (DRWView *)view_default; | stl->g_data->view_faces = (DRWView *)view_default; | ||||
| stl->g_data->view_edges = DRW_view_create_with_zoffset(draw_ctx->rv3d, 1.0f); | stl->g_data->view_edges = DRW_view_create_with_zoffset(view_default, draw_ctx->rv3d, 1.0f); | ||||
| stl->g_data->view_verts = DRW_view_create_with_zoffset(draw_ctx->rv3d, 1.1f); | stl->g_data->view_verts = DRW_view_create_with_zoffset(view_default, draw_ctx->rv3d, 1.1f); | ||||
| } | } | ||||
| } | } | ||||
| static void select_cache_init(void *vedata) | static void select_cache_init(void *vedata) | ||||
| { | { | ||||
| SELECTID_PassList *psl = ((SELECTID_Data *)vedata)->psl; | SELECTID_PassList *psl = ((SELECTID_Data *)vedata)->psl; | ||||
| SELECTID_StorageList *stl = ((SELECTID_Data *)vedata)->stl; | SELECTID_StorageList *stl = ((SELECTID_Data *)vedata)->stl; | ||||
| ▲ Show 20 Lines • Show All 271 Lines • Show Last 20 Lines | |||||