Small fix for node drawing: nodes with no sockets now have a minimum height to avoid opengl drawing artifacts.

This commit is contained in:
Lukas Toenne
2011-03-01 10:08:09 +00:00
parent c9ee017fb5
commit 1c0b9dfdf1

View File

@@ -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! */