From c9fc11a314662dd0ed1b9fb9de4d057b2cf2f1b3 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Thu, 19 Apr 2018 18:03:15 +0200 Subject: AnimEditors: Draw start/end frame ranges on all timelines by default This uses the global scene range, with styling matching the sequencer's start/end frame drawing. (The graph editor's "drivers" mode is exempt, as that doesn't really display time in a linear way, so the start/end frames don't apply) --- source/blender/editors/space_nla/space_nla.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source/blender/editors/space_nla/space_nla.c') diff --git a/source/blender/editors/space_nla/space_nla.c b/source/blender/editors/space_nla/space_nla.c index 08ac7c8973e..4e189682153 100644 --- a/source/blender/editors/space_nla/space_nla.c +++ b/source/blender/editors/space_nla/space_nla.c @@ -268,6 +268,7 @@ static void nla_main_region_draw(const bContext *C, ARegion *ar) { /* draw entirely, view changes should be handled here */ SpaceNla *snla = CTX_wm_space_nla(C); + Scene *scene = CTX_data_scene(C); bAnimContext ac; View2D *v2d = &ar->v2d; View2DGrid *grid; @@ -287,7 +288,10 @@ static void nla_main_region_draw(const bContext *C, ARegion *ar) UI_view2d_grid_free(grid); ED_region_draw_cb_draw(C, ar, REGION_DRAW_PRE_VIEW); - + + /* start and end frame */ + ANIM_draw_framerange(scene, v2d); + /* data */ if (ANIM_animdata_get_context(C, &ac)) { /* strips and backdrops */ -- cgit v1.2.3