diff options
author | Jacques Lucke <jacques@blender.org> | 2021-09-27 16:33:48 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-09-27 16:39:47 +0300 |
commit | 3d2ce25afd7e8ed823277f34f370fb1fb49a739e (patch) | |
tree | cef95f4fa1db1dc37670f2ee47da6a3eb94eb770 /source/blender/makesdna/DNA_node_types.h | |
parent | 43167a2c251b8388be3dc4d2460913f41de13c49 (diff) |
Geometry Nodes: support creating new attributes in modifier
This patch allows passing a field to the modifier as output. In the
modifier, the user can choose an attribute name. The attribute
will be filled with values computed by the field. This only works
for realized mesh/curve/point data. As mentioned in T91376, the
output domain is selected in the node group itself. We might want
to add this functionality to the modifier later as well, but not now.
Differential Revision: https://developer.blender.org/D12644
Diffstat (limited to 'source/blender/makesdna/DNA_node_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_node_types.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_node_types.h b/source/blender/makesdna/DNA_node_types.h index 38f38b4ba1e..34c74e5bd88 100644 --- a/source/blender/makesdna/DNA_node_types.h +++ b/source/blender/makesdna/DNA_node_types.h @@ -120,7 +120,10 @@ typedef struct bNodeSocket { /* XXX deprecated, kept for forward compatibility */ short stack_type DNA_DEPRECATED; char display_shape; - char _pad[1]; + + /* #AttributeDomain used when the geometry nodes modifier creates an attribute for a group + * output. */ + char attribute_domain; /* Runtime-only cache of the number of input links, for multi-input sockets. */ short total_inputs; |