From faac25fefedf4b3318d4f129ebda9efca16e48c5 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Tue, 5 Jul 2022 18:01:08 -0500 Subject: [PATCH] Fix T99284: Undefined values output from UV nodes When committing D14389 I assumed that the output arrays didn't need to be initialized, but the UV parameterizer uses the intial values of UVs. --- source/blender/nodes/geometry/nodes/node_geo_uv_unwrap.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/nodes/geometry/nodes/node_geo_uv_unwrap.cc b/source/blender/nodes/geometry/nodes/node_geo_uv_unwrap.cc index bf960c5c809..364106455b6 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_uv_unwrap.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_uv_unwrap.cc @@ -82,7 +82,7 @@ static VArray construct_uv_gvarray(const MeshComponent &component, edge_evaluator.evaluate(); const IndexMask seam = edge_evaluator.get_evaluated_as_mask(0); - Array uv(mesh->totloop); + Array uv(mesh->totloop, float3(0)); ParamHandle *handle = GEO_uv_parametrizer_construct_begin(); for (const int mp_index : selection) {