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