fix [#26452] Problem with key properties when OnlySelectedCurveKeyframes option enabled.

This commit is contained in:
Campbell Barton 2011-03-10 23:55:22 +00:00
parent b79762a7c3
commit 6959536abe

@ -1203,13 +1203,14 @@ static void mouse_graph_keys (bAnimContext *ac, int mval[], short select_mode, s
else if (select_mode == SELECT_ADD)
nvi->fcu->flag |= FCURVE_SELECTED;
}
}
/* set active F-Curve (NOTE: sync the filter flags with findnearest_fcurve_vert) */
/* needs to be called with (sipo->flag & SIPO_SELCUVERTSONLY) otherwise the active flag won't be set [#26452] */
if (nvi->fcu->flag & FCURVE_SELECTED) {
int filter= (ANIMFILTER_VISIBLE | ANIMFILTER_CURVEVISIBLE | ANIMFILTER_CURVESONLY | ANIMFILTER_NODUPLIS);
ANIM_set_active_channel(ac, ac->data, ac->datatype, filter, nvi->fcu, ANIMTYPE_FCURVE);
}
}
/* free temp sample data for filtering */
MEM_freeN(nvi);