Fixed offset for socket remove buttons ('x') in node groups.
This commit is contained in:
@@ -639,7 +639,7 @@ static void draw_group_socket(const bContext *C, SpaceNode *snode, bNodeTree *nt
|
||||
float colw= 0.6f*node_group_frame;
|
||||
float col1= 6 - node_group_frame;
|
||||
float col2= col1 + colw+6;
|
||||
float col3= node_group_frame - arrowbutw - 6;
|
||||
float col3= - arrowbutw - 6;
|
||||
/* layout stuff for buttons on group right frame */
|
||||
float cor1= 6;
|
||||
float cor2= cor1 + arrowbutw + 6;
|
||||
@@ -713,7 +713,7 @@ static void draw_group_socket(const bContext *C, SpaceNode *snode, bNodeTree *nt
|
||||
uiBlockSetDirection(gnode->block, 0);
|
||||
|
||||
/* remove button */
|
||||
offset = (in_out==SOCK_IN ? col3 : col1);
|
||||
offset = (in_out==SOCK_IN ? col3 : cor1);
|
||||
uiBlockSetEmboss(gnode->block, UI_EMBOSSN);
|
||||
bt = uiDefIconButO(gnode->block, BUT, "NODE_OT_group_socket_remove", 0, ICON_X,
|
||||
gsock->locx+offset, gsock->locy-0.5f*arrowbutw, arrowbutw, arrowbutw, "");
|
||||
|
||||
Reference in New Issue
Block a user