Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Toenne <lukas.toenne@googlemail.com>2011-11-26 15:08:20 +0400
committerLukas Toenne <lukas.toenne@googlemail.com>2011-11-26 15:08:20 +0400
commitf0b9a399819ce5c5a9dd7caa230db35669370fb1 (patch)
tree2bbc1b3b7b00b2a5e8a1b2057ec9cb6ba7cc2fb3 /source/blender
parent8ab167d33d396a005ab301e7fda04dd55c1aae15 (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.c1
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);