diff options
author | Lukas Toenne <lukas.toenne@googlemail.com> | 2011-03-01 13:08:09 +0300 |
---|---|---|
committer | Lukas Toenne <lukas.toenne@googlemail.com> | 2011-03-01 13:08:09 +0300 |
commit | 1c0b9dfdf1f9ccae76e9c90c70d4a0ebfcd94f05 (patch) | |
tree | 2cf298b67b3b7b8e4ef2ff9a4074f1897b21f7f2 /source | |
parent | c9ee017fb52bf68df87fa498555f1df735b46131 (diff) |
Small fix for node drawing: nodes with no sockets now have a minimum height to avoid opengl drawing artifacts.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_node/node_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_node/node_draw.c b/source/blender/editors/space_node/node_draw.c index fc59f274b8a..a1540337ff9 100644 --- a/source/blender/editors/space_node/node_draw.c +++ b/source/blender/editors/space_node/node_draw.c @@ -313,7 +313,7 @@ static void node_update(const bContext *C, bNodeTree *ntree, bNode *node) node->totr.xmin= node->locx; node->totr.xmax= node->locx + node->width; node->totr.ymax= node->locy; - node->totr.ymin= dy; + node->totr.ymin= MIN2(dy, node->locy-2*NODE_DY); } /* based on settings in node, sets drawing rect info. each redraw! */ |