From 35bd6fe993a11df8395f2ef740fd0afa38c77b61 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Thu, 23 Dec 2021 16:22:07 -0600 Subject: Fix T94344: Incorrect size for edge vertices node output This looks like a copy and paste error from the original commit. The virtual array output used the number of mesh polygons instead of the number of edges. --- .../nodes/geometry/nodes/node_geo_input_mesh_edge_vertices.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source/blender/nodes') 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 construct_edge_vertices_gvarray(const MeshComponent &componen return {}; } if (domain == ATTR_DOMAIN_EDGE) { - if (vertex == VERTEX_ONE) { - return VArray::ForFunc(mesh->totpoly, + return VArray::ForFunc(mesh->totedge, [mesh](const int i) -> int { return mesh->medge[i].v1; }); } - return VArray::ForFunc(mesh->totpoly, + return VArray::ForFunc(mesh->totedge, [mesh](const int i) -> int { return mesh->medge[i].v2; }); } return {}; -- cgit v1.2.3