From 3d91a853b209bc82296e40a65c2cb816e618ec70 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Thu, 28 Jul 2022 16:34:17 -0500 Subject: Cleanup: Nodes: Store node group idname in tree type There was already a utility to retrieve the correct node group idname from the context, `node_group_idname`, but often it's clearer to use lower-level arguments, or the context isn't accessible. Storing the group idname in the tree type makes it accessible without rewriting it elsewhere. --- source/blender/nodes/shader/node_shader_tree.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/nodes/shader/node_shader_tree.cc') diff --git a/source/blender/nodes/shader/node_shader_tree.cc b/source/blender/nodes/shader/node_shader_tree.cc index 43dbf5060bd..02ac54f4b2b 100644 --- a/source/blender/nodes/shader/node_shader_tree.cc +++ b/source/blender/nodes/shader/node_shader_tree.cc @@ -166,6 +166,7 @@ void register_node_tree_type_sh() tt->type = NTREE_SHADER; strcpy(tt->idname, "ShaderNodeTree"); + strcpy(tt->group_idname, "ShaderNodeGroup"); strcpy(tt->ui_name, N_("Shader Editor")); tt->ui_icon = ICON_NODE_MATERIAL; strcpy(tt->ui_description, N_("Shader nodes")); -- cgit v1.2.3