[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [13304] trunk/blender/source/blender/src/ editaction.c: Action Editor - More Bugfixes for Action-Groups:
Joshua Leung
aligorith at gmail.com
Sun Jan 20 05:28:09 CET 2008
Revision: 13304
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=13304
Author: aligorith
Date: 2008-01-20 05:27:54 +0100 (Sun, 20 Jan 2008)
Log Message:
-----------
Action Editor - More Bugfixes for Action-Groups:
* Wrong selection functions were being used for borderselect when handling groups. This resulted in all of the keyframes for a group getting selected
* Select row was not working for groups either, as there was missing code there...
Modified Paths:
--------------
trunk/blender/source/blender/src/editaction.c
Modified: trunk/blender/source/blender/src/editaction.c
===================================================================
--- trunk/blender/source/blender/src/editaction.c 2008-01-20 03:16:19 UTC (rev 13303)
+++ trunk/blender/source/blender/src/editaction.c 2008-01-20 04:27:54 UTC (rev 13304)
@@ -2492,6 +2492,20 @@
/* get channel, and act according to type */
act_channel= get_nearest_act_channel(mval, &chantype);
switch (chantype) {
+ case ACTTYPE_GROUP:
+ {
+ bActionGroup *agrp= (bActionGroup *)act_channel;
+ bActionChannel *achan;
+ bConstraintChannel *conchan;
+
+ for (achan= agrp->channels.first; achan && achan->grp==agrp; achan= achan->next) {
+ select_ipo_bezier_keys(achan->ipo, select_mode);
+
+ for (conchan=achan->constraintChannels.first; conchan; conchan=conchan->next)
+ select_ipo_bezier_keys(conchan->ipo, select_mode);
+ }
+ }
+ break;
case ACTTYPE_ACHAN:
{
bActionChannel *achan= (bActionChannel *)act_channel;
@@ -2937,10 +2951,10 @@
bConstraintChannel *conchan;
for (achan= agrp->channels.first; achan && achan->grp==agrp; achan= achan->next) {
- select_ipo_bezier_keys(achan->ipo, selectmode);
+ borderselect_ipo_key(achan->ipo, rectf.xmin, rectf.xmax, selectmode);
for (conchan=achan->constraintChannels.first; conchan; conchan=conchan->next)
- select_ipo_bezier_keys(conchan->ipo, selectmode);
+ borderselect_ipo_key(conchan->ipo, rectf.xmin, rectf.xmax, selectmode);
}
}
}
More information about the Bf-blender-cvs
mailing list