Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2010-11-07 15:15:21 +0300
committerJoshua Leung <aligorith@gmail.com>2010-11-07 15:15:21 +0300
commitfb20c1b184bb07129283a84a9a94066797f9d22a (patch)
tree99bf3c75c2b86b6c1503c43c2c759ede1f4dd758 /source/blender/editors/animation/anim_channels_edit.c
parentdb4609eb08fe6e76a98d501de18c6fcc40e9148b (diff)
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...
Diffstat (limited to 'source/blender/editors/animation/anim_channels_edit.c')
-rw-r--r--source/blender/editors/animation/anim_channels_edit.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/source/blender/editors/animation/anim_channels_edit.c b/source/blender/editors/animation/anim_channels_edit.c
index 7f67b00fd75..cf0babf4587 100644
--- a/source/blender/editors/animation/anim_channels_edit.c
+++ b/source/blender/editors/animation/anim_channels_edit.c
@@ -1650,11 +1650,14 @@ static void borderselect_anim_channels (bAnimContext *ac, rcti *rect, short sele
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);