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/blenkernel/BKE_node.h | |
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/blenkernel/BKE_node.h')
-rw-r--r-- | source/blender/blenkernel/BKE_node.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_node.h b/source/blender/blenkernel/BKE_node.h index 90dbec7ec52..02e3cefe6a5 100644 --- a/source/blender/blenkernel/BKE_node.h +++ b/source/blender/blenkernel/BKE_node.h @@ -374,6 +374,9 @@ typedef struct bNodeTreeType { int type; /* type identifier */ char idname[64]; /* identifier name */ + /* The ID name of group nodes for this type. */ + char group_idname[64]; + char ui_name[64]; char ui_description[256]; int ui_icon; |