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:
authorCampbell Barton <ideasman42@gmail.com>2018-09-07 04:35:33 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-09-07 04:35:33 +0300
commit77c0a7e1d578f915ffbd4d127d0d5acb96a8a1d6 (patch)
tree926d6914be09efb2afb13d0c554d0a9154eaea17 /source/blender/editors/util/ed_util.c
parent5940ea11ce89ce16db1cfa956b80efcfddc2e2c8 (diff)
Fix missing line width for helper line drawing
Also scale by pixel size.
Diffstat (limited to 'source/blender/editors/util/ed_util.c')
-rw-r--r--source/blender/editors/util/ed_util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/util/ed_util.c b/source/blender/editors/util/ed_util.c
index 35a77fcd4c0..6c4f963b011 100644
--- a/source/blender/editors/util/ed_util.c
+++ b/source/blender/editors/util/ed_util.c
@@ -344,6 +344,8 @@ void ED_region_draw_mouse_line_cb(const bContext *C, ARegion *ar, void *arg_info
const uint shdr_pos = GPU_vertformat_attr_add(immVertexFormat(), "pos", GPU_COMP_F32, 2, GPU_FETCH_FLOAT);
+ GPU_line_width(1.0f * U.pixelsize);
+
immBindBuiltinProgram(GPU_SHADER_2D_LINE_DASHED_UNIFORM_COLOR);
float viewport_size[4];