forked from blender/blender
realize-depth #5
@ -3674,11 +3674,11 @@ size_t ANIM_animdata_filter(bAnimContext *ac,
|
||||
void *data,
|
||||
eAnimCont_Types datatype)
|
||||
{
|
||||
size_t items = 0;
|
||||
if (!data || !anim_data) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* only filter data if there's somewhere to put it */
|
||||
if (data && anim_data) {
|
||||
/* firstly filter the data */
|
||||
size_t items = 0;
|
||||
switch (datatype) {
|
||||
/* Action-Editing Modes */
|
||||
case ANIMCONT_ACTION: /* 'Action Editor' */
|
||||
@ -3803,9 +3803,7 @@ size_t ANIM_animdata_filter(bAnimContext *ac,
|
||||
if (filter_mode & ANIMFILTER_NODUPLIS) {
|
||||
items = animdata_filter_remove_duplis(anim_data);
|
||||
}
|
||||
}
|
||||
|
||||
/* return the number of items in the list */
|
||||
return items;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user