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:
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_input_mesh_edge_vertices.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_input_mesh_edge_vertices.cc b/source/blender/nodes/geometry/nodes/node_geo_input_mesh_edge_vertices.cc
index 473bef63e92..edf3f7c3e81 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_input_mesh_edge_vertices.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_input_mesh_edge_vertices.cc
@@ -50,12 +50,11 @@ static VArray<int> construct_edge_vertices_gvarray(const MeshComponent &componen
return {};
}
if (domain == ATTR_DOMAIN_EDGE) {
-
if (vertex == VERTEX_ONE) {
- return VArray<int>::ForFunc(mesh->totpoly,
+ return VArray<int>::ForFunc(mesh->totedge,
[mesh](const int i) -> int { return mesh->medge[i].v1; });
}
- return VArray<int>::ForFunc(mesh->totpoly,
+ return VArray<int>::ForFunc(mesh->totedge,
[mesh](const int i) -> int { return mesh->medge[i].v2; });
}
return {};