diff options
author | Jacques Lucke <mail@jlucke.com> | 2019-02-26 19:24:36 +0300 |
---|---|---|
committer | Jacques Lucke <mail@jlucke.com> | 2019-02-26 19:24:36 +0300 |
commit | d54143078562fbf7780f0da8ab5c6da79a9c21b1 (patch) | |
tree | 58c6d033aa82c8d64c173dd827283f6928325969 /source/blender/editors/space_nla | |
parent | 2b3553eff2a01cf3d1655183de9ebd416abde9c1 (diff) |
UI: Show marker lines in remaining animation spaces
This also includes fixed/slighly refactored drawing code for marker lines.
The old code used the wrong height.
Reviewers: brecht
Differential Revision: https://developer.blender.org/D4411
Diffstat (limited to 'source/blender/editors/space_nla')
-rw-r--r-- | source/blender/editors/space_nla/space_nla.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/space_nla/space_nla.c b/source/blender/editors/space_nla/space_nla.c index 232e4e9ce0f..84b8a64bc62 100644 --- a/source/blender/editors/space_nla/space_nla.c +++ b/source/blender/editors/space_nla/space_nla.c @@ -301,7 +301,9 @@ static void nla_main_region_draw(const bContext *C, ARegion *ar) /* markers */ UI_view2d_view_orthoSpecial(ar, v2d, 1); - ED_markers_draw(C, DRAW_MARKERS_MARGIN); + int marker_draw_flag = DRAW_MARKERS_MARGIN; + if (snla->flag & SNLA_SHOW_MARKER_LINES) marker_draw_flag |= DRAW_MARKERS_LINES; + ED_markers_draw(C, marker_draw_flag); /* preview range */ UI_view2d_view_ortho(v2d); |