[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [17348] branches/animsys2/source/blender/ src/editaction.c: AnimSys2: Dopesheet Bugfix
Joshua Leung
aligorith at gmail.com
Thu Nov 6 12:26:09 CET 2008
Revision: 17348
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=17348
Author: aligorith
Date: 2008-11-06 12:26:09 +0100 (Thu, 06 Nov 2008)
Log Message:
-----------
AnimSys2: Dopesheet Bugfix
Made the Action Channel expand widgets easier to click on. Previously, clicks were only detected left of the widgets.
Modified Paths:
--------------
branches/animsys2/source/blender/src/editaction.c
Modified: branches/animsys2/source/blender/src/editaction.c
===================================================================
--- branches/animsys2/source/blender/src/editaction.c 2008-11-06 11:05:54 UTC (rev 17347)
+++ branches/animsys2/source/blender/src/editaction.c 2008-11-06 11:26:09 UTC (rev 17348)
@@ -4401,9 +4401,9 @@
case ACTTYPE_GROUP:
{
bActionGroup *agrp= (bActionGroup *)act_channel;
- short offset= (datatype == ACTCONT_DOPESHEET)? 7 : 0;
+ short offset= (datatype == ACTCONT_DOPESHEET)? 21 : 0;
- if ((mval[0] < offset+17) && (agrp->channels.first)) {
+ if ((mval[0] < (offset+17)) && (agrp->channels.first)) {
/* toggle expand */
agrp->flag ^= AGRP_EXPANDED;
}
@@ -4433,7 +4433,7 @@
case ACTTYPE_ACHAN:
{
bActionChannel *achan= (bActionChannel *)act_channel;
- short offset= (datatype == ACTCONT_DOPESHEET)? 7 : 0;
+ short offset= (datatype == ACTCONT_DOPESHEET)? 21 : 0;
if (mval[0] >= (NAMEWIDTH-16)) {
/* toggle protect */
@@ -4443,7 +4443,7 @@
/* toggle mute */
achan->ipo->muteipo = (achan->ipo->muteipo)? 0: 1;
}
- else if (mval[0] <= offset+17) {
+ else if (mval[0] <= (offset+17)) {
/* toggle expand */
achan->flag ^= ACHAN_EXPANDED;
}
More information about the Bf-blender-cvs
mailing list