Fix: Regression: Box select not working for GP/GPv3 channels
Caused by 62d9e55eec
Grease pencil channels are not added to the `anim_data` list when
`ANIMFILTER_FCURVESONLY` is set. So skip this filter-type when GP
animdata is present.
Pull Request: https://projects.blender.org/blender/blender/pulls/111377
This commit is contained in:
committed by
Pratik Borhade
parent
75d788f2d3
commit
a370acae0c
@@ -2986,8 +2986,12 @@ static void box_select_anim_channels(bAnimContext *ac, rcti *rect, short selectm
|
||||
UI_view2d_region_to_view(v2d, rect->xmax, rect->ymax - 2, &rectf.xmax, &rectf.ymax);
|
||||
|
||||
/* filter data */
|
||||
filter = (ANIMFILTER_DATA_VISIBLE | ANIMFILTER_LIST_VISIBLE | ANIMFILTER_LIST_CHANNELS |
|
||||
ANIMFILTER_FCURVESONLY);
|
||||
filter = (ANIMFILTER_DATA_VISIBLE | ANIMFILTER_LIST_VISIBLE | ANIMFILTER_LIST_CHANNELS);
|
||||
|
||||
if (!ANIM_animdata_can_have_greasepencil(eAnimCont_Types(ac->datatype))) {
|
||||
filter |= ANIMFILTER_FCURVESONLY;
|
||||
}
|
||||
|
||||
ANIM_animdata_filter(
|
||||
ac, &anim_data, eAnimFilter_Flags(filter), ac->data, eAnimCont_Types(ac->datatype));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user