diff options
author | Jacques Lucke <mail@jlucke.com> | 2019-05-13 12:55:38 +0300 |
---|---|---|
committer | Jacques Lucke <mail@jlucke.com> | 2019-05-13 12:55:53 +0300 |
commit | 86650b01d873ef8ea46f4c147129199f647e6ffc (patch) | |
tree | 5489ddecd088785437df3095c5504521f0843733 /source/blender/editors | |
parent | 44fc8aa2216314c1e9418a85140c86bf6bc587bf (diff) |
UI: Don't display markers in driver editor
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/space_graph/space_graph.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/source/blender/editors/space_graph/space_graph.c b/source/blender/editors/space_graph/space_graph.c index dae8bbed580..0e16b917f35 100644 --- a/source/blender/editors/space_graph/space_graph.c +++ b/source/blender/editors/space_graph/space_graph.c @@ -293,12 +293,14 @@ static void graph_main_region_draw(const bContext *C, ARegion *ar) } /* markers */ - UI_view2d_view_orthoSpecial(ar, v2d, 1); - int marker_draw_flag = DRAW_MARKERS_MARGIN; - if (sipo->flag & SIPO_MARKER_LINES) { - marker_draw_flag |= DRAW_MARKERS_LINES; + if (sipo->mode != SIPO_MODE_DRIVERS) { + UI_view2d_view_orthoSpecial(ar, v2d, 1); + int marker_draw_flag = DRAW_MARKERS_MARGIN; + if (sipo->flag & SIPO_MARKER_LINES) { + marker_draw_flag |= DRAW_MARKERS_LINES; + } + ED_markers_draw(C, marker_draw_flag); } - ED_markers_draw(C, marker_draw_flag); /* preview range */ UI_view2d_view_ortho(v2d); |