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:
authorTon Roosendaal <ton@blender.org>2008-12-22 13:09:56 +0300
committerTon Roosendaal <ton@blender.org>2008-12-22 13:09:56 +0300
commitbac4d10174da530427343e6238be16b8a8ee3ac8 (patch)
tree2b920dbf0ff67f4896619258cb0db032d6b2c851 /source/blender/editors/space_time
parentfa12c089b125a8705310122d0022bf82f4d93972 (diff)
2.5
Small area/space api fix: space->new() callbacks now require Context pointer. Too many cases you want to initialize stuff... Also: added dummy draw function for NLA channel region, was too ugly.
Diffstat (limited to 'source/blender/editors/space_time')
-rw-r--r--source/blender/editors/space_time/space_time.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/space_time/space_time.c b/source/blender/editors/space_time/space_time.c
index fdba1829410..81c5334ef31 100644
--- a/source/blender/editors/space_time/space_time.c
+++ b/source/blender/editors/space_time/space_time.c
@@ -205,8 +205,9 @@ static void time_header_area_draw(const bContext *C, ARegion *ar)
/* ******************** default callbacks for time space ***************** */
-static SpaceLink *time_new(void)
+static SpaceLink *time_new(const bContext *C)
{
+ Scene *scene= CTX_data_scene(C);
ARegion *ar;
SpaceTime *stime;
@@ -229,10 +230,9 @@ static SpaceLink *time_new(void)
BLI_addtail(&stime->regionbase, ar);
ar->regiontype= RGN_TYPE_WINDOW;
- /* XXX here sfra and efra was used.... */
- ar->v2d.tot.xmin= (float)(- 4);
+ ar->v2d.tot.xmin= (float)(SFRA - 4);
ar->v2d.tot.ymin= 0.0f;
- ar->v2d.tot.xmax= (float)(250 + 4);
+ ar->v2d.tot.xmax= (float)(EFRA + 4);
ar->v2d.tot.ymax= 50.0f;
ar->v2d.cur= ar->v2d.tot;