Fix header text for muted collapsed nodes not being greyed out.
This commit is contained in:
@@ -1176,10 +1176,13 @@ static void node_draw_hidden(const bContext *C, ARegion *ar, SpaceNode *snode, b
|
||||
//if (node->flag & NODE_MUTED)
|
||||
// BLI_snprintf(showname, sizeof(showname), "[%s]", showname);
|
||||
|
||||
uiDefBut(node->block, UI_BTYPE_LABEL, 0, showname,
|
||||
round_fl_to_int(rct->xmin + NODE_MARGIN_X), round_fl_to_int(centy - NODE_DY * 0.5f),
|
||||
(short)(BLI_rctf_size_x(rct) - 18.0f - 12.0f), (short)NODE_DY,
|
||||
NULL, 0, 0, 0, 0, "");
|
||||
uiBut *but = uiDefBut(node->block, UI_BTYPE_LABEL, 0, showname,
|
||||
round_fl_to_int(rct->xmin + NODE_MARGIN_X), round_fl_to_int(centy - NODE_DY * 0.5f),
|
||||
(short)(BLI_rctf_size_x(rct) - 18.0f - 12.0f), (short)NODE_DY,
|
||||
NULL, 0, 0, 0, 0, "");
|
||||
if (node->flag & NODE_MUTED) {
|
||||
UI_but_flag_enable(but, UI_BUT_INACTIVE);
|
||||
}
|
||||
}
|
||||
|
||||
/* scale widget thing */
|
||||
|
Reference in New Issue
Block a user