diff options
author | Ton Roosendaal <ton@blender.org> | 2008-12-22 13:09:56 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2008-12-22 13:09:56 +0300 |
commit | bac4d10174da530427343e6238be16b8a8ee3ac8 (patch) | |
tree | 2b920dbf0ff67f4896619258cb0db032d6b2c851 /source/blender/editors/space_sequencer | |
parent | fa12c089b125a8705310122d0022bf82f4d93972 (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_sequencer')
-rw-r--r-- | source/blender/editors/space_sequencer/space_sequencer.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/editors/space_sequencer/space_sequencer.c b/source/blender/editors/space_sequencer/space_sequencer.c index 2452b103a56..08f700d1cf9 100644 --- a/source/blender/editors/space_sequencer/space_sequencer.c +++ b/source/blender/editors/space_sequencer/space_sequencer.c @@ -62,8 +62,9 @@ /* ******************** default callbacks for sequencer space ***************** */ -static SpaceLink *sequencer_new(void) +static SpaceLink *sequencer_new(const bContext *C) { + Scene *scene= CTX_data_scene(C); ARegion *ar; SpaceSeq *sseq; @@ -87,11 +88,11 @@ static SpaceLink *sequencer_new(void) ar->regiontype= RGN_TYPE_WINDOW; - /* seq space goes from (0,8) to (250, 0) */ + /* seq space goes from (0,8) to (0, efra) */ ar->v2d.tot.xmin= 0.0f; ar->v2d.tot.ymin= 0.0f; - ar->v2d.tot.xmax= 250.0f; + ar->v2d.tot.xmax= scene->r.efra; ar->v2d.tot.ymax= 8.0f; ar->v2d.cur= ar->v2d.tot; |