Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/animation/anim_filter.c
| Show First 20 Lines • Show All 406 Lines • ▼ Show 20 Lines | bool ANIM_animdata_get_context(const bContext *C, bAnimContext *ac) | ||||
| memset(ac, 0, sizeof(bAnimContext)); | memset(ac, 0, sizeof(bAnimContext)); | ||||
| /* get useful default context settings from context */ | /* get useful default context settings from context */ | ||||
| ac->bmain = bmain; | ac->bmain = bmain; | ||||
| ac->scene = scene; | ac->scene = scene; | ||||
| if (scene) { | if (scene) { | ||||
| ac->markers = ED_context_get_markers(C); | ac->markers = ED_context_get_markers(C); | ||||
| } | } | ||||
| ac->depsgraph = CTX_data_depsgraph(C); | |||||
| ac->view_layer = CTX_data_view_layer(C); | ac->view_layer = CTX_data_view_layer(C); | ||||
| ac->obact = (ac->view_layer->basact) ? ac->view_layer->basact->object : NULL; | ac->obact = (ac->view_layer->basact) ? ac->view_layer->basact->object : NULL; | ||||
| ac->sa = sa; | ac->sa = sa; | ||||
| ac->ar = ar; | ac->ar = ar; | ||||
| ac->sl = sl; | ac->sl = sl; | ||||
| ac->spacetype = (sa) ? sa->spacetype : 0; | ac->spacetype = (sa) ? sa->spacetype : 0; | ||||
| ac->regiontype = (ar) ? ar->regiontype : 0; | ac->regiontype = (ar) ? ar->regiontype : 0; | ||||
| ▲ Show 20 Lines • Show All 3,074 Lines • Show Last 20 Lines | |||||