Bugfix: NLA Channel Borderselect works again

This commit is contained in:
Joshua Leung 2010-11-08 00:09:31 +00:00
parent 55923d1044
commit 615a2060c9
2 changed files with 11 additions and 1 deletions

@ -1688,6 +1688,16 @@ static void borderselect_anim_channels (bAnimContext *ac, rcti *rect, short sele
agrp->flag &= ~AGRP_ACTIVE; agrp->flag &= ~AGRP_ACTIVE;
} }
break; break;
case ANIMTYPE_NLATRACK:
{
NlaTrack *nlt= (NlaTrack *)ale->data;
/* for now, it's easier just to do this here manually, as defining a new type
* currently adds complications when doing other stuff
*/
ACHANNEL_SET_FLAG(nlt, selectmode, NLATRACK_SELECTED);
}
break;
} }
} }

@ -330,7 +330,7 @@ typedef enum eAnimChannels_SetFlag {
/* types of settings for AnimChannels */ /* types of settings for AnimChannels */
typedef enum eAnimChannel_Settings { typedef enum eAnimChannel_Settings {
ACHANNEL_SETTING_SELECT = 0, ACHANNEL_SETTING_SELECT = 0,
ACHANNEL_SETTING_PROTECT, // warning: for drawing UI's, need to check if this is off (maybe inverse this later) ACHANNEL_SETTING_PROTECT, // warning: for drawing UI's, need to check if this is off (maybe inverse this later)
ACHANNEL_SETTING_MUTE, ACHANNEL_SETTING_MUTE,
ACHANNEL_SETTING_EXPAND, ACHANNEL_SETTING_EXPAND,