Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/animation/anim_filter.c
| Show First 20 Lines • Show All 2,042 Lines • ▼ Show 20 Lines | for (mask = bmain->masks.first; mask; mask = mask->id.next) { | ||||
| size_t tmp_items = 0; | size_t tmp_items = 0; | ||||
| /* only show if mask is used by something... */ | /* only show if mask is used by something... */ | ||||
| if (ID_REAL_USERS(mask) < 1) { | if (ID_REAL_USERS(mask) < 1) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| /* add mask animation channels */ | /* add mask animation channels */ | ||||
| if (!(filter_mode & ANIMFILTER_FCURVESONLY)) { | |||||
| BEGIN_ANIMFILTER_SUBCHANNELS (EXPANDED_MASK(mask)) { | BEGIN_ANIMFILTER_SUBCHANNELS (EXPANDED_MASK(mask)) { | ||||
| tmp_items += animdata_filter_mask_data(&tmp_data, mask, filter_mode); | tmp_items += animdata_filter_mask_data(&tmp_data, mask, filter_mode); | ||||
| } | } | ||||
| END_ANIMFILTER_SUBCHANNELS; | END_ANIMFILTER_SUBCHANNELS; | ||||
| } | |||||
| /* did we find anything? */ | /* did we find anything? */ | ||||
| if (tmp_items) { | if (tmp_items) { | ||||
| /* include data-expand widget first */ | /* include data-expand widget first */ | ||||
| if (filter_mode & ANIMFILTER_LIST_CHANNELS) { | if (filter_mode & ANIMFILTER_LIST_CHANNELS) { | ||||
| /* add mask data-block as channel too (if for drawing, and it has layers) */ | /* add mask data-block as channel too (if for drawing, and it has layers) */ | ||||
| ANIMCHANNEL_NEW_CHANNEL(mask, ANIMTYPE_MASKDATABLOCK, NULL, NULL); | ANIMCHANNEL_NEW_CHANNEL(mask, ANIMTYPE_MASKDATABLOCK, NULL, NULL); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,526 Lines • Show Last 20 Lines | |||||