Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/animation/anim_filter.c
| Show First 20 Lines • Show All 2,590 Lines • ▼ Show 20 Lines | static size_t animdata_filter_ds_obanim( | ||||
| size_t items = 0; | size_t items = 0; | ||||
| AnimData *adt = ob->adt; | AnimData *adt = ob->adt; | ||||
| short type = 0, expanded = 1; | short type = 0, expanded = 1; | ||||
| void *cdata = NULL; | void *cdata = NULL; | ||||
| /* determine the type of expander channels to use */ | /* determine the type of expander channels to use */ | ||||
| /* this is the best way to do this for now... */ | /* this is the best way to do this for now... */ | ||||
| ANIMDATA_FILTER_CASES( | ANIMDATA_FILTER_CASES(ob, | ||||
| ob, | |||||
| {/* AnimData - no channel, but consider data */}, | {/* AnimData - no channel, but consider data */}, | ||||
| {/* NLA - no channel, but consider data */}, | {/* NLA - no channel, but consider data */}, | ||||
| { /* Drivers */ | { /* Drivers */ | ||||
| type = ANIMTYPE_FILLDRIVERS; | type = ANIMTYPE_FILLDRIVERS; | ||||
| cdata = adt; | cdata = adt; | ||||
| expanded = EXPANDED_DRVD(adt); | expanded = EXPANDED_DRVD(adt); | ||||
| }, | }, | ||||
| {/* NLA Strip Controls - no dedicated channel for now (XXX) */}, | {/* NLA Strip Controls - no dedicated channel for now (XXX) */}, | ||||
| { /* Keyframes */ | { /* Keyframes */ | ||||
| type = ANIMTYPE_FILLACTD; | type = ANIMTYPE_FILLACTD; | ||||
| cdata = adt->action; | cdata = adt->action; | ||||
| expanded = EXPANDED_ACTC(adt->action); | expanded = EXPANDED_ACTC(adt->action); | ||||
| }); | }); | ||||
| /* add object-level animation channels */ | /* add object-level animation channels */ | ||||
| BEGIN_ANIMFILTER_SUBCHANNELS(expanded) | BEGIN_ANIMFILTER_SUBCHANNELS(expanded) | ||||
| { | { | ||||
| /* animation data filtering */ | /* animation data filtering */ | ||||
| tmp_items += animfilter_block_data(ac, &tmp_data, ads, (ID *)ob, filter_mode); | tmp_items += animfilter_block_data(ac, &tmp_data, ads, (ID *)ob, filter_mode); | ||||
| } | } | ||||
| END_ANIMFILTER_SUBCHANNELS; | END_ANIMFILTER_SUBCHANNELS; | ||||
| ▲ Show 20 Lines • Show All 141 Lines • ▼ Show 20 Lines | static size_t animdata_filter_ds_scene( | ||||
| size_t items = 0; | size_t items = 0; | ||||
| AnimData *adt = sce->adt; | AnimData *adt = sce->adt; | ||||
| short type = 0, expanded = 1; | short type = 0, expanded = 1; | ||||
| void *cdata = NULL; | void *cdata = NULL; | ||||
| /* determine the type of expander channels to use */ | /* determine the type of expander channels to use */ | ||||
| // this is the best way to do this for now... | // this is the best way to do this for now... | ||||
| ANIMDATA_FILTER_CASES( | ANIMDATA_FILTER_CASES(sce, | ||||
| sce, | |||||
| {/* AnimData - no channel, but consider data */}, | {/* AnimData - no channel, but consider data */}, | ||||
| {/* NLA - no channel, but consider data */}, | {/* NLA - no channel, but consider data */}, | ||||
| { /* Drivers */ | { /* Drivers */ | ||||
| type = ANIMTYPE_FILLDRIVERS; | type = ANIMTYPE_FILLDRIVERS; | ||||
| cdata = adt; | cdata = adt; | ||||
| expanded = EXPANDED_DRVD(adt); | expanded = EXPANDED_DRVD(adt); | ||||
| }, | }, | ||||
| {/* NLA Strip Controls - no dedicated channel for now (XXX) */}, | {/* NLA Strip Controls - no dedicated channel for now (XXX) */}, | ||||
| { /* Keyframes */ | { /* Keyframes */ | ||||
| type = ANIMTYPE_FILLACTD; | type = ANIMTYPE_FILLACTD; | ||||
| cdata = adt->action; | cdata = adt->action; | ||||
| expanded = EXPANDED_ACTC(adt->action); | expanded = EXPANDED_ACTC(adt->action); | ||||
| }); | }); | ||||
| /* add scene-level animation channels */ | /* add scene-level animation channels */ | ||||
| BEGIN_ANIMFILTER_SUBCHANNELS(expanded) | BEGIN_ANIMFILTER_SUBCHANNELS(expanded) | ||||
| { | { | ||||
| /* animation data filtering */ | /* animation data filtering */ | ||||
| tmp_items += animfilter_block_data(ac, &tmp_data, ads, (ID *)sce, filter_mode); | tmp_items += animfilter_block_data(ac, &tmp_data, ads, (ID *)sce, filter_mode); | ||||
| } | } | ||||
| END_ANIMFILTER_SUBCHANNELS; | END_ANIMFILTER_SUBCHANNELS; | ||||
| ▲ Show 20 Lines • Show All 604 Lines • Show Last 20 Lines | |||||