forked from bartvdbraak/blender
fix [#26452] Problem with key properties when OnlySelectedCurveKeyframes option enabled.
This commit is contained in:
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)
|
else if (select_mode == SELECT_ADD)
|
||||||
nvi->fcu->flag |= FCURVE_SELECTED;
|
nvi->fcu->flag |= FCURVE_SELECTED;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* set active F-Curve (NOTE: sync the filter flags with findnearest_fcurve_vert) */
|
/* 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) {
|
if (nvi->fcu->flag & FCURVE_SELECTED) {
|
||||||
int filter= (ANIMFILTER_VISIBLE | ANIMFILTER_CURVEVISIBLE | ANIMFILTER_CURVESONLY | ANIMFILTER_NODUPLIS);
|
int filter= (ANIMFILTER_VISIBLE | ANIMFILTER_CURVEVISIBLE | ANIMFILTER_CURVESONLY | ANIMFILTER_NODUPLIS);
|
||||||
ANIM_set_active_channel(ac, ac->data, ac->datatype, filter, nvi->fcu, ANIMTYPE_FCURVE);
|
ANIM_set_active_channel(ac, ac->data, ac->datatype, filter, nvi->fcu, ANIMTYPE_FCURVE);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/* free temp sample data for filtering */
|
/* free temp sample data for filtering */
|
||||||
MEM_freeN(nvi);
|
MEM_freeN(nvi);
|
||||||
|
Loading…
Reference in New Issue
Block a user