[Bf-blender-cvs] [7efd45e] master: Node Editor: Another missing glLineWidth reset

Julian Eisel noreply at git.blender.org
Wed Feb 10 01:05:21 CET 2016


Commit: 7efd45eecddbbe891f038a04dab17dadc77d3248
Author: Julian Eisel
Date:   Wed Feb 10 00:41:45 2016 +0100
Branches: master
https://developer.blender.org/rB7efd45eecddbbe891f038a04dab17dadc77d3248

Node Editor: Another missing glLineWidth reset

Caused too thick outlines around nodes and around preview image in node.

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

M	source/blender/editors/space_node/node_draw.c

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

diff --git a/source/blender/editors/space_node/node_draw.c b/source/blender/editors/space_node/node_draw.c
index 9c02acb..a4e2d54 100644
--- a/source/blender/editors/space_node/node_draw.c
+++ b/source/blender/editors/space_node/node_draw.c
@@ -819,6 +819,8 @@ static void node_draw_basis(const bContext *C, ARegion *ar, SpaceNode *snode, bN
 	}
 #endif
 
+	glLineWidth(1.0f);
+
 	UI_draw_roundbox_corner_set(UI_CNR_TOP_LEFT | UI_CNR_TOP_RIGHT);
 	UI_draw_roundbox(rct->xmin, rct->ymax - NODE_DY, rct->xmax, rct->ymax, BASIS_RAD);




More information about the Bf-blender-cvs mailing list