Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/animation/anim_filter.c
| Show First 20 Lines • Show All 413 Lines • ▼ Show 20 Lines | bool ANIM_animdata_get_context(const bContext *C, bAnimContext *ac) | ||||
| /* 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->view_layer = CTX_data_view_layer(C); | ac->view_layer = CTX_data_view_layer(C); | ||||
| ac->depsgraph = CTX_data_depsgraph_pointer(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->area = area; | ac->area = area; | ||||
| ac->region = region; | ac->region = region; | ||||
| ac->sl = sl; | ac->sl = sl; | ||||
| ac->spacetype = (area) ? area->spacetype : 0; | ac->spacetype = (area) ? area->spacetype : 0; | ||||
| ac->regiontype = (region) ? region->regiontype : 0; | ac->regiontype = (region) ? region->regiontype : 0; | ||||
| /* initialise default y-scale factor */ | /* initialise default y-scale factor */ | ||||
| ▲ Show 20 Lines • Show All 3,126 Lines • Show Last 20 Lines | |||||