NLA Editor Bugfix: Select NLA tracks too when selecting strips
This commit is contained in:
parent
ddc52b49ec
commit
b2b7b3f796
|
@ -575,14 +575,6 @@ static void mouse_nla_strips(bContext *C, bAnimContext *ac, const int mval[2], s
|
|||
|
||||
/* deselect all other channels first */
|
||||
ANIM_deselect_anim_channels(ac, ac->data, ac->datatype, 0, ACHANNEL_SETFLAG_CLEAR);
|
||||
|
||||
/* Highlight NLA-Track */
|
||||
if (ale->type == ANIMTYPE_NLATRACK) {
|
||||
NlaTrack *nlt = (NlaTrack *)ale->data;
|
||||
|
||||
nlt->flag |= NLATRACK_SELECTED;
|
||||
ANIM_set_active_channel(ac, ac->data, ac->datatype, filter, nlt, ANIMTYPE_NLATRACK);
|
||||
}
|
||||
}
|
||||
|
||||
/* only select strip if we clicked on a valid channel and hit something */
|
||||
|
@ -594,10 +586,21 @@ static void mouse_nla_strips(bContext *C, bAnimContext *ac, const int mval[2], s
|
|||
|
||||
/* if we selected it, we can make it active too
|
||||
* - we always need to clear the active strip flag though...
|
||||
* - as well as selecting its track...
|
||||
*/
|
||||
deselect_nla_strips(ac, DESELECT_STRIPS_CLEARACTIVE, 0);
|
||||
if (strip->flag & NLASTRIP_FLAG_SELECT)
|
||||
|
||||
if (strip->flag & NLASTRIP_FLAG_SELECT) {
|
||||
strip->flag |= NLASTRIP_FLAG_ACTIVE;
|
||||
|
||||
/* Highlight NLA-Track */
|
||||
if (ale->type == ANIMTYPE_NLATRACK) {
|
||||
NlaTrack *nlt = (NlaTrack *)ale->data;
|
||||
|
||||
nlt->flag |= NLATRACK_SELECTED;
|
||||
ANIM_set_active_channel(ac, ac->data, ac->datatype, filter, nlt, ANIMTYPE_NLATRACK);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* free this channel */
|
||||
|
|
Loading…
Reference in New Issue