diff options
author | Joshua Leung <aligorith@gmail.com> | 2010-01-27 14:43:34 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2010-01-27 14:43:34 +0300 |
commit | f84f96aee58bfbf014cedc68bf9de81dc0edc0ff (patch) | |
tree | 3cef54589aa60b3eb321dcddab9f1531177d80a0 /source/blender/editors/space_nla | |
parent | 7a959059029bcd5abf0a41655d6eb07eb6ef725c (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')
-rw-r--r-- | source/blender/editors/space_nla/space_nla.c | 3 |
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; |