Fix #29139: Comp Group nodes don't retain name

Added tree node id browser to Active Node panel so name of nodetree editing in
group node can be easily changed now.
This commit is contained in:
Sergey Sharybin 2011-11-04 13:31:15 +00:00
parent 21d188a70f
commit 82dc05391c
1 changed files with 6 additions and 1 deletions

View File

@ -842,6 +842,11 @@ static void node_draw_group(const bContext *C, ARegion *ar, SpaceNode *snode, bN
}
}
void node_uifunc_group(uiLayout *layout, bContext *C, PointerRNA *ptr)
{
uiTemplateIDBrowse(layout, C, ptr, "node_tree", NULL, NULL, NULL);
}
static void node_common_buts_whileloop(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
{
uiItemR(layout, ptr, "max_iterations", 0, NULL, 0);
@ -867,7 +872,7 @@ static void node_common_set_butfunc(bNodeType *ntype)
{
switch(ntype->type) {
case NODE_GROUP:
// ntype->uifunc= node_common_buts_group;
ntype->uifunc= node_uifunc_group;
ntype->drawfunc= node_draw_group;
ntype->drawupdatefunc= node_update_group;
break;