From 2cad07176178b5acc20091416dd80d4791950062 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 21 Jun 2019 08:24:58 +1000 Subject: Fix dashed line drawing The dash_factor wasn't being set in many places, having the graph editor open for eg, caused box-select in the 3D view not to show dashes. --- source/blender/editors/space_view3d/view3d_gizmo_ruler.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/editors/space_view3d/view3d_gizmo_ruler.c') diff --git a/source/blender/editors/space_view3d/view3d_gizmo_ruler.c b/source/blender/editors/space_view3d/view3d_gizmo_ruler.c index 566a15cc7b7..ebfd66008f7 100644 --- a/source/blender/editors/space_view3d/view3d_gizmo_ruler.c +++ b/source/blender/editors/space_view3d/view3d_gizmo_ruler.c @@ -563,6 +563,7 @@ static void gizmo_ruler_draw(const bContext *C, wmGizmo *gz) (float *)(float[][4]){{0.67f, 0.67f, 0.67f, 1.0f}, {col[0], col[1], col[2], col[3]}}, 2); immUniform1f("dash_width", 6.0f); + immUniform1f("dash_factor", 0.5f); immBegin(GPU_PRIM_LINE_STRIP, 3); @@ -725,6 +726,7 @@ static void gizmo_ruler_draw(const bContext *C, wmGizmo *gz) (float *)(float[][4]){{0.67f, 0.67f, 0.67f, 1.0f}, {col[0], col[1], col[2], col[3]}}, 2); immUniform1f("dash_width", 6.0f); + immUniform1f("dash_factor", 0.5f); immBegin(GPU_PRIM_LINES, 2); -- cgit v1.2.3