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:
authorJacques Lucke <mail@jlucke.com>2019-05-13 12:55:38 +0300
committerJacques Lucke <mail@jlucke.com>2019-05-13 12:55:53 +0300
commit86650b01d873ef8ea46f4c147129199f647e6ffc (patch)
tree5489ddecd088785437df3095c5504521f0843733 /source/blender/editors/space_graph
parent44fc8aa2216314c1e9418a85140c86bf6bc587bf (diff)
UI: Don't display markers in driver editor
Diffstat (limited to 'source/blender/editors/space_graph')
-rw-r--r--source/blender/editors/space_graph/space_graph.c12
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);