[Bf-blender-cvs] [092df875341] blender-v3.0-release: Fix error in rBfb0ea9
Germano Cavalcante
noreply at git.blender.org
Sat Nov 20 05:44:49 CET 2021
Commit: 092df8753414edfd75127204416e3ac5d71c4393
Author: Germano Cavalcante
Date: Sat Nov 20 01:44:35 2021 -0300
Branches: blender-v3.0-release
https://developer.blender.org/rB092df8753414edfd75127204416e3ac5d71c4393
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}
===================================================================
M source/blender/editors/space_graph/graph_draw.c
===================================================================
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 {
More information about the Bf-blender-cvs
mailing list