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>2021-12-24 01:22:07 +0300
committerHans Goudey <h.goudey@me.com>2021-12-24 01:22:07 +0300
commit35bd6fe993a11df8395f2ef740fd0afa38c77b61 (patch)
treecc1cd401e15a536d5b091e871d5ee6774ee4cbfb /source/blender/nodes
parent2df912466ca65b6daa9366e09f2e070a015710a4 (diff)
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.
Diffstat (limited to 'source/blender/nodes')
-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 {};