UI: Don't display markers in driver editor
authorJacques Lucke <mail@jlucke.com>
Mon, 13 May 2019 09:55:38 +0000 (11:55 +0200)
committerJacques Lucke <mail@jlucke.com>
Mon, 13 May 2019 09:55:53 +0000 (11:55 +0200)
source/blender/editors/space_graph/space_graph.c

index dae8bbed5801b09d9aa7a14485099b6765fadc0c..0e16b917f35288c7cdbc43bb5a8e147f76dde63e 100644 (file)
@@ -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);