Better pointer check in outliner.c for actions, for bassam :)

This commit is contained in:
Ton Roosendaal
2004-10-22 12:33:18 +00:00
parent 461e07aedd
commit eecaa4cb50

View File

@@ -1141,14 +1141,18 @@ static int tree_element_active_nla_action(TreeElement *te, TreeStoreElem *tselem
{
if(set) {
bActionStrip *strip= te->directdata;
deselect_nlachannel_keys(0);
strip->flag |= ACTSTRIP_SELECT;
allqueue(REDRAWNLA, 0);
if(strip) {
deselect_nlachannel_keys(0);
strip->flag |= ACTSTRIP_SELECT;
allqueue(REDRAWNLA, 0);
}
}
else {
/* id in tselem is action */
bActionStrip *strip= te->directdata;
if(strip->flag & ACTSTRIP_SELECT) return 1;
if(strip) {
if(strip->flag & ACTSTRIP_SELECT) return 1;
}
}
return 0;
}