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:
authorGermano Cavalcante <germano.costa@ig.com.br>2021-11-20 07:44:35 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2021-11-20 07:44:35 +0300
commit092df8753414edfd75127204416e3ac5d71c4393 (patch)
treeda54a322e2e20bf5e8a6d8e0b89b61fc295f79f8 /source/blender
parentfb0ea94c6303ce030c160fa33f24ee9527f453ba (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/blender')
-rw-r--r--source/blender/editors/space_graph/graph_draw.c2
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 {