Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-04-28 16:39:30 +0300
committerHans Goudey <h.goudey@me.com>2022-04-28 16:39:30 +0300
commit0ad73bb9655f04afb5ad56174d8fb416cded3e4c (patch)
treee427b3514ee5165843f9a5dc2724d85c92fd215a /source/blender/makesdna/DNA_node_types.h
parentb0e47ffdcf13cd00c42e6cab4c3556679ad9fea4 (diff)
Geometry Nodes: Add default attribute name to field inputs/outputs
Geometry node group inputs and outputs get a new property that controls the attribute name used for that field input/output when assigning the node group to a modifier for the first time. If the default name is assigned to an input, the default "Use attribute name" is true . In order to properly detect when a node group is first assigned, the modifier now clears its properties when clearing the node group. Ref T96707 Differential Revision: https://developer.blender.org/D14761
Diffstat (limited to 'source/blender/makesdna/DNA_node_types.h')
-rw-r--r--source/blender/makesdna/DNA_node_types.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_node_types.h b/source/blender/makesdna/DNA_node_types.h
index 1b9192c75cf..d18fe1b81dd 100644
--- a/source/blender/makesdna/DNA_node_types.h
+++ b/source/blender/makesdna/DNA_node_types.h
@@ -139,6 +139,14 @@ typedef struct bNodeSocket {
char label[64];
char description[64];
+ /**
+ * The default attribute name to use for geometry nodes modifier output attribute sockets.
+ * \note Storing this pointer in every single socket exposes the bad design of using sockets
+ * to describe group inputs and outputs. In the future, it should be stored in socket
+ * declarations.
+ */
+ char *default_attribute_name;
+
/** Cached data from execution. */
void *cache;