From 24db3d17aafd1b2027cd62afd39b2d648e8ec7d5 Mon Sep 17 00:00:00 2001 From: Lukas Toenne Date: Tue, 8 Feb 2011 12:54:32 +0000 Subject: Per-type node labels and customizable names. The label displayed in the node header is now by default the node type string. A custom label callback can be implemented to display more detailed information. This is currently used by group nodes, which display their internal tree name, and math, vector math, mix and filter nodes, which use their internal operation sub-type. Also the node tree selection/naming box for groups is now displayed only on open groups, to make it clearer that this is the internal type of the group and get a cleaner main tree. --- source/blender/nodes/intern/TEX_nodes/TEX_math.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/nodes/intern/TEX_nodes/TEX_math.c') diff --git a/source/blender/nodes/intern/TEX_nodes/TEX_math.c b/source/blender/nodes/intern/TEX_nodes/TEX_math.c index aee6fb663e5..7e1c54b6e47 100644 --- a/source/blender/nodes/intern/TEX_nodes/TEX_math.c +++ b/source/blender/nodes/intern/TEX_nodes/TEX_math.c @@ -181,6 +181,7 @@ void register_node_type_tex_math(ListBase *lb) node_type_base(&ntype, TEX_NODE_MATH, "Math", NODE_CLASS_CONVERTOR, NODE_OPTIONS, inputs, outputs); node_type_size(&ntype, 120, 110, 160); + node_type_label(&ntype, node_math_label); node_type_storage(&ntype, "node_math", NULL, NULL); node_type_exec(&ntype, exec); -- cgit v1.2.3