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:
authorJacques Lucke <jacques@blender.org>2021-08-05 18:27:00 +0300
committerJacques Lucke <jacques@blender.org>2021-08-05 18:27:00 +0300
commit6343cd913da35925cb6673813f1ad69043f6deb8 (patch)
tree07187a9fcff7a94ce615c7fbe82d97130ba0340b /source/blender/editors
parentd5dc3501b550dd1ebf90e290ac80b30c82797b54 (diff)
support execution geometry expander
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/space_node/node_edit.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/space_node/node_edit.cc b/source/blender/editors/space_node/node_edit.cc
index dd053367eff..f35318f2ad1 100644
--- a/source/blender/editors/space_node/node_edit.cc
+++ b/source/blender/editors/space_node/node_edit.cc
@@ -2999,7 +2999,7 @@ static void foreach_available_attribute(
if (ELEM(group_input->type, SOCK_INT, SOCK_FLOAT, SOCK_VECTOR, SOCK_RGBA, SOCK_BOOLEAN)) {
GeometryExpanderOutput attribute;
attribute.type = GEOMETRY_EXPANDER_OUTPUT_TYPE_INPUT;
- attribute.domain = ATTR_DOMAIN_POINT;
+ attribute.array_source = GEOMETRY_EXPANDER_ARRAY_SOURCE_MESH_VERTICES;
attribute.socket_type = (eNodeSocketDatatype)group_input->type;
STRNCPY(attribute.input_identifier, group_input->identifier);
callback(attribute);
@@ -3012,7 +3012,7 @@ static void foreach_available_attribute(
GeometryExpanderOutput attribute;
attribute.type = GEOMETRY_EXPANDER_OUTPUT_TYPE_LOCAL;
attribute.socket_type = (eNodeSocketDatatype)node_output->type;
- attribute.domain = ATTR_DOMAIN_POINT;
+ attribute.array_source = GEOMETRY_EXPANDER_ARRAY_SOURCE_MESH_VERTICES;
STRNCPY(attribute.local_node_name, node->name);
STRNCPY(attribute.local_socket_identifier, node_output->identifier);
callback(attribute);
@@ -3023,7 +3023,7 @@ static void foreach_available_attribute(
GeometryExpanderOutput attribute;
attribute.type = GEOMETRY_EXPANDER_OUTPUT_TYPE_BUILTIN;
attribute.socket_type = SOCK_VECTOR;
- attribute.domain = ATTR_DOMAIN_POINT;
+ attribute.array_source = GEOMETRY_EXPANDER_ARRAY_SOURCE_MESH_VERTICES;
STRNCPY(attribute.builtin_identifier, "position");
callback(attribute);
}
@@ -3031,7 +3031,7 @@ static void foreach_available_attribute(
GeometryExpanderOutput attribute;
attribute.type = GEOMETRY_EXPANDER_OUTPUT_TYPE_BUILTIN;
attribute.socket_type = SOCK_INT;
- attribute.domain = ATTR_DOMAIN_FACE;
+ attribute.array_source = GEOMETRY_EXPANDER_ARRAY_SOURCE_MESH_VERTICES;
STRNCPY(attribute.builtin_identifier, "material_index");
callback(attribute);
}