[Bf-blender-cvs] [91c44920dd5] master: Fix: Build error after merge from release branch

Hans Goudey noreply at git.blender.org
Thu Jun 2 18:02:35 CEST 2022


Commit: 91c44920dd564792427fb2afc1b55d37aa17ff06
Author: Hans Goudey
Date:   Thu Jun 2 18:02:32 2022 +0200
Branches: master
https://developer.blender.org/rB91c44920dd564792427fb2afc1b55d37aa17ff06

Fix: Build error after merge from release branch

===================================================================

M	source/blender/nodes/geometry/nodes/node_geo_extrude_mesh.cc

===================================================================

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 {};
 }



More information about the Bf-blender-cvs mailing list