diff options
author | Juho Vepsalainen <bebraw@gmail.com> | 2008-01-07 22:38:01 +0300 |
---|---|---|
committer | Juho Vepsalainen <bebraw@gmail.com> | 2008-01-07 22:38:01 +0300 |
commit | aa1c0281c6df642d6c9673c00ac660a36a75f286 (patch) | |
tree | b062ce961329087d2791c118a5f84bfd944cf1cb /source/blender/include/BSE_node.h | |
parent | 7da95822f0fabf1b554c34f5bcd7c4d6dcb4ae24 (diff) |
Custom Names for Nodes
This commit makes it possible to add a custom name to a node. The feature can be
accessed either by using a menu or shortcut ctrl-r. It currently works only when
a single node is selected. Invoking the feature gives a popup menu in which a new
name can be entered. If the given name is not empty, it will be shown like
"(myCustomName) NodeName" in the node header.
This feature is particularly useful when documenting complex node setups.
I also fixed the size of blur node. It was too short before due to my previous
commit.
Thanks to David Millan Escriva for contribution!
Diffstat (limited to 'source/blender/include/BSE_node.h')
-rw-r--r-- | source/blender/include/BSE_node.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/include/BSE_node.h b/source/blender/include/BSE_node.h index 8e4ed44058b..b1854e31d50 100644 --- a/source/blender/include/BSE_node.h +++ b/source/blender/include/BSE_node.h @@ -54,6 +54,8 @@ struct Material *editnode_get_active_material(struct Material *ma); struct bNode *editnode_get_active_idnode(struct bNodeTree *ntree, short id_code); struct bNode *editnode_get_active(struct bNodeTree *ntree); +void node_rename(struct SpaceNode *snode); + void snode_tag_dirty(struct SpaceNode *snode); void snode_set_context(struct SpaceNode *snode); @@ -97,6 +99,8 @@ struct SpaceNode; struct bNodeLink; void node_draw_link(struct SpaceNode *snode, struct bNodeLink *link); +void node_rename_but(char *s); + void init_node_butfuncs(void); /* exported to CMP and SHD nodes */ |