[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [35460] trunk/blender/source/blender/ editors/space_graph/graph_select.c: fix [#26452] Problem with key properties when OnlySelectedCurveKeyframes option enabled .
Campbell Barton
ideasman42 at gmail.com
Fri Mar 11 00:55:23 CET 2011
Revision: 35460
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=35460
Author: campbellbarton
Date: 2011-03-10 23:55:22 +0000 (Thu, 10 Mar 2011)
Log Message:
-----------
fix [#26452] Problem with key properties when OnlySelectedCurveKeyframes option enabled.
Modified Paths:
--------------
trunk/blender/source/blender/editors/space_graph/graph_select.c
Modified: trunk/blender/source/blender/editors/space_graph/graph_select.c
===================================================================
--- trunk/blender/source/blender/editors/space_graph/graph_select.c 2011-03-10 23:26:59 UTC (rev 35459)
+++ trunk/blender/source/blender/editors/space_graph/graph_select.c 2011-03-10 23:55:22 UTC (rev 35460)
@@ -1203,14 +1203,15 @@
else if (select_mode == SELECT_ADD)
nvi->fcu->flag |= FCURVE_SELECTED;
}
-
- /* set active F-Curve (NOTE: sync the filter flags with findnearest_fcurve_vert) */
- 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);
- }
}
-
+
+ /* 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);
}
More information about the Bf-blender-cvs
mailing list