Node Editor: Show frame label only when a label is set
Avoids having frames with the word "Frame" on top, resulting in less visual noise. (users were working this around by adding a space as label name). Differential Revision: D11193
This commit is contained in:
parent
8d6264ea12
commit
8f04ddbbc6
Notes:
blender-bot
2023-02-14 01:11:05 +01:00
Referenced by issue #88411, Text in Frame's node won't render if Label is empty
|
@ -456,7 +456,9 @@ static void node_draw_frame(const bContext *C,
|
|||
}
|
||||
|
||||
/* label */
|
||||
node_draw_frame_label(ntree, node, snode->runtime->aspect);
|
||||
if (node->label[0] != '\0') {
|
||||
node_draw_frame_label(ntree, node, snode->runtime->aspect);
|
||||
}
|
||||
|
||||
UI_block_end(C, node->block);
|
||||
UI_block_draw(C, node->block);
|
||||
|
|
Loading…
Reference in New Issue