diff options
author | Joshua Leung <aligorith@gmail.com> | 2015-10-10 08:14:11 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2015-10-26 10:18:08 +0300 |
commit | a93605b95b43466eb79bdca21283c2cfafad6a01 (patch) | |
tree | caa3712120f53aa6dd1e7d5aff763ca616a81248 /source/blender/editors | |
parent | 21f4c77a763d4a3fde8a4adfe7a5ea94dbc99fa9 (diff) |
Fix: X-axis values in Graph Editor should not be displayed as timecodes in "Drivers" mode
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/space_graph/space_graph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_graph/space_graph.c b/source/blender/editors/space_graph/space_graph.c index 4c7ac532411..ea5cd56b1da 100644 --- a/source/blender/editors/space_graph/space_graph.c +++ b/source/blender/editors/space_graph/space_graph.c @@ -240,7 +240,7 @@ static void graph_main_area_draw(const bContext *C, ARegion *ar) UI_view2d_view_ortho(v2d); /* grid */ - unitx = (sipo->flag & SIPO_DRAWTIME) ? V2D_UNIT_SECONDS : V2D_UNIT_FRAMESCALE; + unitx = ((sipo->mode == SIPO_MODE_ANIMATION) && (sipo->flag & SIPO_DRAWTIME)) ? V2D_UNIT_SECONDS : V2D_UNIT_FRAMESCALE; grid = UI_view2d_grid_calc(CTX_data_scene(C), v2d, unitx, V2D_GRID_NOCLAMP, unity, V2D_GRID_NOCLAMP, ar->winx, ar->winy); UI_view2d_grid_draw(v2d, grid, V2D_GRIDLINES_ALL); |