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:
authorJulian Eisel <eiseljulian@gmail.com>2016-02-10 02:41:45 +0300
committerJulian Eisel <eiseljulian@gmail.com>2016-02-10 03:05:10 +0300
commit7efd45eecddbbe891f038a04dab17dadc77d3248 (patch)
tree5900d68284bff34f4e42cb7d5d050c64a1762c5c /source/blender/editors/space_node/node_draw.c
parent5a45ccaf3e5102ee571599fa9f26a78ac1f6d0f4 (diff)
Node Editor: Another missing glLineWidth reset
Caused too thick outlines around nodes and around preview image in node.
Diffstat (limited to 'source/blender/editors/space_node/node_draw.c')
-rw-r--r--source/blender/editors/space_node/node_draw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/space_node/node_draw.c b/source/blender/editors/space_node/node_draw.c
index 9c02acb3683..a4e2d5406f4 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);