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-06-02 19:02:32 +0300
committerHans Goudey <h.goudey@me.com>2022-06-02 19:02:32 +0300
commit91c44920dd564792427fb2afc1b55d37aa17ff06 (patch)
tree1acb32c2c66ee8218546a9b54a9280c113532974 /source/blender/nodes
parent3cd6ccd9687f94bdb179641b26450f45ee2d2ef4 (diff)
Fix: Build error after merge from release branch
Diffstat (limited to 'source/blender/nodes')
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_extrude_mesh.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_extrude_mesh.cc b/source/blender/nodes/geometry/nodes/node_geo_extrude_mesh.cc
index 3e2e07cb772..3eca92e37a3 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_extrude_mesh.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_extrude_mesh.cc
@@ -145,7 +145,7 @@ static void expand_mesh(Mesh &mesh,
BKE_mesh_update_customdata_pointers(&mesh, false);
}
-static CustomData &get_customdata(Mesh &mesh, const AttributeDomain domain)
+static CustomData &get_customdata(Mesh &mesh, const eAttrDomain domain)
{
switch (domain) {
case ATTR_DOMAIN_POINT:
@@ -162,13 +162,13 @@ static CustomData &get_customdata(Mesh &mesh, const AttributeDomain domain)
}
}
-static MutableSpan<int> get_orig_index_layer(Mesh &mesh, const AttributeDomain domain)
+static MutableSpan<int> get_orig_index_layer(Mesh &mesh, const eAttrDomain domain)
{
MeshComponent component;
component.replace(&mesh, GeometryOwnershipType::ReadOnly);
CustomData &custom_data = get_customdata(mesh, domain);
if (int *orig_indices = static_cast<int *>(CustomData_get_layer(&custom_data, CD_ORIGINDEX))) {
- return {orig_indices, component.attribute_domain_size(domain)};
+ return {orig_indices, component.attribute_domain_num(domain)};
}
return {};
}