diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2021-11-20 07:44:35 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2021-11-20 07:44:35 +0300 |
commit | 092df8753414edfd75127204416e3ac5d71c4393 (patch) | |
tree | da54a322e2e20bf5e8a6d8e0b89b61fc295f79f8 /source | |
parent | fb0ea94c6303ce030c160fa33f24ee9527f453ba (diff) |
Fix error in rBfb0ea9
There is no need to multiply the "dash_width" by `UM.pixel size` since the "viewport_size" is already being divided by the DPI.
Ref {rBfb0ea9}
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_graph/graph_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_graph/graph_draw.c b/source/blender/editors/space_graph/graph_draw.c index 85d27075117..3635e9deb29 100644 --- a/source/blender/editors/space_graph/graph_draw.c +++ b/source/blender/editors/space_graph/graph_draw.c @@ -1068,7 +1068,7 @@ static void draw_fcurve(bAnimContext *ac, SpaceGraph *sipo, ARegion *region, bAn immBindBuiltinProgram(GPU_SHADER_2D_LINE_DASHED_UNIFORM_COLOR); immUniform2f("viewport_size", viewport_size[2] / UI_DPI_FAC, viewport_size[3] / UI_DPI_FAC); immUniform1i("colors_len", 0); /* Simple dashes. */ - immUniform1f("dash_width", 4.0f * U.pixelsize); + immUniform1f("dash_width", 4.0f); immUniform1f("dash_factor", 0.5f); } else { |