From 9a8f5022b70f3b33968b61b54f2b2c785b2f5145 Mon Sep 17 00:00:00 2001 From: Nathan Craddock Date: Tue, 17 Nov 2020 20:04:42 -0700 Subject: Fix: Outliner hierarchy line width variations During some operators like rotate in grease pencil edit mode the hierarchy lines in the outliner would draw twice as thick. Set the width before drawing the lines in the outliner. Differential Revision: https://developer.blender.org/D9589 --- source/blender/editors/space_outliner/outliner_draw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c index 7242d7e0002..ea2e3ce2565 100644 --- a/source/blender/editors/space_outliner/outliner_draw.c +++ b/source/blender/editors/space_outliner/outliner_draw.c @@ -3278,6 +3278,7 @@ static void outliner_draw_hierarchy_lines(SpaceOutliner *space_outliner, UI_GetThemeColorBlend3ubv(TH_BACK, TH_TEXT, 0.4f, col); col[3] = 255; + GPU_line_width(1.0f); GPU_blend(GPU_BLEND_ALPHA); outliner_draw_hierarchy_lines_recursive(pos, space_outliner, lb, startx, col, false, starty); GPU_blend(GPU_BLEND_NONE); -- cgit v1.2.3