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
FixT87160_DSE_Channel_Selection
Pablo Vazquez 2 years ago
parent 8d6264ea12
commit 8f04ddbbc6

@ -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…
Cancel
Save