diff options
author | Lukas Toenne <lukas.toenne@googlemail.com> | 2013-11-12 22:18:04 +0400 |
---|---|---|
committer | Lukas Toenne <lukas.toenne@googlemail.com> | 2013-11-12 22:18:04 +0400 |
commit | 4d4ef0434b0078364824c2fe5ebfb8153fb44956 (patch) | |
tree | d3f5d286cca7b7bfa34fab18c57e4a38da0f80e4 /source/blender/nodes/intern/node_common.c | |
parent | 8663b940eda703c45baf664c9aa379a9ecb684f9 (diff) |
Make dynamic node labels possible as a registerable function 'draw_label' (simple 'label' identifier is already in use, need to avoid API breakage). This should simply return a string. The dynamic label can still be overridden by the user-defined node.label string.
Diffstat (limited to 'source/blender/nodes/intern/node_common.c')
-rw-r--r-- | source/blender/nodes/intern/node_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/intern/node_common.c b/source/blender/nodes/intern/node_common.c index c5f98ea64bd..a3298de5d59 100644 --- a/source/blender/nodes/intern/node_common.c +++ b/source/blender/nodes/intern/node_common.c @@ -82,7 +82,7 @@ bNodeSocket *node_group_find_output_socket(bNode *groupnode, const char *identif } /* groups display their internal tree name as label */ -void node_group_label(bNode *node, char *label, int maxlen) +void node_group_label(bNodeTree *UNUSED(ntree), bNode *node, char *label, int maxlen) { BLI_strncpy(label, (node->id) ? node->id->name + 2 : IFACE_("Missing Datablock"), maxlen); } |