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:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user