Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_view3d/view3d_select.c
| Show First 20 Lines • Show All 306 Lines • ▼ Show 20 Lines | |||||
| /* TODO: should return whether there is valid context to continue */ | /* TODO: should return whether there is valid context to continue */ | ||||
| void ED_view3d_viewcontext_init(bContext *C, ViewContext *vc) | void ED_view3d_viewcontext_init(bContext *C, ViewContext *vc) | ||||
| { | { | ||||
| memset(vc, 0, sizeof(ViewContext)); | memset(vc, 0, sizeof(ViewContext)); | ||||
| vc->C = C; | vc->C = C; | ||||
| vc->ar = CTX_wm_region(C); | vc->ar = CTX_wm_region(C); | ||||
| vc->bmain = CTX_data_main(C); | vc->bmain = CTX_data_main(C); | ||||
| vc->depsgraph = CTX_data_depsgraph(C); | vc->depsgraph = CTX_data_evaluated_depsgraph(C); | ||||
| vc->scene = CTX_data_scene(C); | vc->scene = CTX_data_scene(C); | ||||
| vc->view_layer = CTX_data_view_layer(C); | vc->view_layer = CTX_data_view_layer(C); | ||||
| vc->v3d = CTX_wm_view3d(C); | vc->v3d = CTX_wm_view3d(C); | ||||
| vc->win = CTX_wm_window(C); | vc->win = CTX_wm_window(C); | ||||
| vc->rv3d = CTX_wm_region_view3d(C); | vc->rv3d = CTX_wm_region_view3d(C); | ||||
| vc->obact = CTX_data_active_object(C); | vc->obact = CTX_data_active_object(C); | ||||
| vc->obedit = CTX_data_edit_object(C); | vc->obedit = CTX_data_edit_object(C); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 3,917 Lines • Show Last 20 Lines | |||||