diff options
author | Lukas Toenne <lukas.toenne@googlemail.com> | 2011-11-26 15:08:20 +0400 |
---|---|---|
committer | Lukas Toenne <lukas.toenne@googlemail.com> | 2011-11-26 15:08:20 +0400 |
commit | f0b9a399819ce5c5a9dd7caa230db35669370fb1 (patch) | |
tree | 2bbc1b3b7b00b2a5e8a1b2057ec9cb6ba7cc2fb3 /source/blender | |
parent | 8ab167d33d396a005ab301e7fda04dd55c1aae15 (diff) |
Fix for linking cycles group nodes in the sidebar menu (bug #29403). The template for ntreeAddNode needs not only the node group pointer but also the NODE_GROUP id for the base type.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/space_node/node_templates.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/space_node/node_templates.c b/source/blender/editors/space_node/node_templates.c index c99a0be15dc..6027a272270 100644 --- a/source/blender/editors/space_node/node_templates.c +++ b/source/blender/editors/space_node/node_templates.c @@ -370,6 +370,7 @@ static void ui_node_menu_column(NodeLinkArg *arg, int nclass, const char *cname) NULL, 0.0, 0.0, 0.0, 0.0, "Add node to input"); argN = MEM_dupallocN(arg); + argN->type = NODE_GROUP; argN->ngroup = ngroup; argN->output = i; uiButSetNFunc(but, ui_node_link, argN, NULL); |