diff options
author | Hans Goudey <h.goudey@me.com> | 2022-07-29 00:34:17 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-07-29 00:34:17 +0300 |
commit | 3d91a853b209bc82296e40a65c2cb816e618ec70 (patch) | |
tree | 2a321be0ae2614dde2a192bb88c188fe4d742eca /source/blender/nodes/geometry | |
parent | 4757a5ad338bbb1673ea89fa238069578a05be95 (diff) |
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.
Diffstat (limited to 'source/blender/nodes/geometry')
-rw-r--r-- | source/blender/nodes/geometry/node_geometry_tree.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/nodes/geometry/node_geometry_tree.cc b/source/blender/nodes/geometry/node_geometry_tree.cc index 38e914b9a9f..e3998322741 100644 --- a/source/blender/nodes/geometry/node_geometry_tree.cc +++ b/source/blender/nodes/geometry/node_geometry_tree.cc @@ -109,6 +109,7 @@ void register_node_tree_type_geo() MEM_callocN(sizeof(bNodeTreeType), "geometry node tree type")); tt->type = NTREE_GEOMETRY; strcpy(tt->idname, "GeometryNodeTree"); + strcpy(tt->group_idname, "GeometryNodeGroup"); strcpy(tt->ui_name, N_("Geometry Node Editor")); tt->ui_icon = ICON_GEOMETRY_NODES; strcpy(tt->ui_description, N_("Geometry nodes")); |