[Bf-blender-cvs] [9a8f5022b70] blender-v2.91-release: Fix: Outliner hierarchy line width variations

Nathan Craddock noreply at git.blender.org
Wed Nov 18 16:17:49 CET 2020


Commit: 9a8f5022b70f3b33968b61b54f2b2c785b2f5145
Author: Nathan Craddock
Date:   Tue Nov 17 20:04:42 2020 -0700
Branches: blender-v2.91-release
https://developer.blender.org/rB9a8f5022b70f3b33968b61b54f2b2c785b2f5145

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

===================================================================

M	source/blender/editors/space_outliner/outliner_draw.c

===================================================================

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);



More information about the Bf-blender-cvs mailing list