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:
authorLeon Schittek <lone_noel>2022-03-07 18:15:16 +0300
committerSybren A. Stüvel <sybren@blender.org>2022-03-07 18:24:17 +0300
commitea3b2e8736164e01d7fc5630eb7c7adbc01c8bc4 (patch)
treeefc0b246b7247acf54ddc8e1027526ac182256d3
parente908ebc0947d04747cb0bf0e79388b77e5693042 (diff)
Fix T95531: Draw y axis values in Driver Editor
When drawing the driver editor, only skip drawing the "scrubbing area" and not the Y-axis values or the scroll bars. The issue was introduced in rBb3431a88465db2433b46e1f6426c801125d0047d to avoid drawing the playhead in the Driver Editor but also prevented the text on the y axis from being drawn. Reviewed by: Severin, sybren Maniphest Tasks: T95531 Differential Revision: https://developer.blender.org/D14022
-rw-r--r--source/blender/editors/space_graph/space_graph.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/source/blender/editors/space_graph/space_graph.c b/source/blender/editors/space_graph/space_graph.c
index 7d5e8836490..537f6db2d4d 100644
--- a/source/blender/editors/space_graph/space_graph.c
+++ b/source/blender/editors/space_graph/space_graph.c
@@ -311,16 +311,14 @@ static void graph_main_region_draw_overlay(const bContext *C, ARegion *region)
/* draw entirely, view changes should be handled here */
const SpaceGraph *sipo = CTX_wm_space_graph(C);
- /* Driver Editor's X axis is not time. */
- if (sipo->mode == SIPO_MODE_DRIVERS) {
- return;
- }
-
const Scene *scene = CTX_data_scene(C);
View2D *v2d = &region->v2d;
- /* scrubbing region */
- ED_time_scrub_draw_current_frame(region, scene, sipo->flag & SIPO_DRAWTIME);
+ /* Driver Editor's X axis is not time. */
+ if (sipo->mode != SIPO_MODE_DRIVERS) {
+ /* scrubbing region */
+ ED_time_scrub_draw_current_frame(region, scene, sipo->flag & SIPO_DRAWTIME);
+ }
/* scrollers */
/* FIXME: args for scrollers depend on the type of data being shown. */