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-01-27 14:43:34 +0300
committerJoshua Leung <aligorith@gmail.com>2010-01-27 14:43:34 +0300
commitf84f96aee58bfbf014cedc68bf9de81dc0edc0ff (patch)
tree3cef54589aa60b3eb321dcddab9f1531177d80a0 /source/blender/editors/space_nla/space_nla.c
parent7a959059029bcd5abf0a41655d6eb07eb6ef725c (diff)
DopeSheet and NLA Editor Scrollbar/View Bugs:
Fixed some long-standing bugs with DopeSheet and NLA Editor main views not being properly lined up with their channels, and/or showing an incorrect scrollbar. This fixes #20759, and probably a few other reports about similar issues that might've cropped up. NOTE: - probably a version bump might be needed after this, to avoid problems on durian animation files? - the default .b.blend needs updating again, since the saved config there doesn't get updated (or doesn't here, when using load factory settings)
Diffstat (limited to 'source/blender/editors/space_nla/space_nla.c')
-rw-r--r--source/blender/editors/space_nla/space_nla.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/space_nla/space_nla.c b/source/blender/editors/space_nla/space_nla.c
index d4f330db303..0cffef049b7 100644
--- a/source/blender/editors/space_nla/space_nla.c
+++ b/source/blender/editors/space_nla/space_nla.c
@@ -106,6 +106,7 @@ ARegion *nla_has_buttons_region(ScrArea *sa)
static SpaceLink *nla_new(const bContext *C)
{
Scene *scene= CTX_data_scene(C);
+ ScrArea *sa= CTX_wm_area(C);
ARegion *ar;
SpaceNla *snla;
@@ -151,7 +152,7 @@ static SpaceLink *nla_new(const bContext *C)
ar->regiontype= RGN_TYPE_WINDOW;
ar->v2d.tot.xmin= (float)(SFRA-10);
- ar->v2d.tot.ymin= -500.0f;
+ ar->v2d.tot.ymin= (float)(-sa->winy)/3.0f;
ar->v2d.tot.xmax= (float)(EFRA+10);
ar->v2d.tot.ymax= 0.0f;