diff options
Diffstat (limited to 'source/blender/editors/space_nla/space_nla.c')
-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; |