[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [32917] trunk/blender/source/blender/ editors/animation/anim_channels_edit.c: Partial fix for NLA Channel-List Border Select.

Joshua Leung aligorith at gmail.com
Sun Nov 7 13:15:21 CET 2010


Revision: 32917
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=32917
Author:   aligorith
Date:     2010-11-07 13:15:21 +0100 (Sun, 07 Nov 2010)

Log Message:
-----------
Partial fix for NLA Channel-List Border Select. This part of the fix gets the selection ranges right. The next part of the fix (for tomorrow) will involve setting up access for NLA-Track properties...

Modified Paths:
--------------
    trunk/blender/source/blender/editors/animation/anim_channels_edit.c

Modified: trunk/blender/source/blender/editors/animation/anim_channels_edit.c
===================================================================
--- trunk/blender/source/blender/editors/animation/anim_channels_edit.c	2010-11-07 12:12:33 UTC (rev 32916)
+++ trunk/blender/source/blender/editors/animation/anim_channels_edit.c	2010-11-07 12:15:21 UTC (rev 32917)
@@ -1650,11 +1650,14 @@
 	float ymin, ymax;
 	
 	/* set initial y extents */
-	if (ac->datatype == ANIMCONT_NLA)
-		ymax = (float)(-NLACHANNEL_HEIGHT);
-	else
+	if (ac->datatype == ANIMCONT_NLA) {
+		ymin = (float)(-NLACHANNEL_HEIGHT);
+		ymax = 0.0f;
+	}
+	else {
+		ymin = 0.0f;
 		ymax = (float)(-ACHANNEL_HEIGHT);
-	ymin = 0.0f;
+	}
 	
 	/* convert border-region to view coordinates */
 	UI_view2d_region_to_view(v2d, rect->xmin, rect->ymin+2, &rectf.xmin, &rectf.ymin);





More information about the Bf-blender-cvs mailing list