diff options
author | Hans Goudey <h.goudey@me.com> | 2022-07-06 02:01:08 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-07-06 02:01:08 +0300 |
commit | faac25fefedf4b3318d4f129ebda9efca16e48c5 (patch) | |
tree | 706b693d33a961125ec4e99d6604d03d6b74a9bb | |
parent | 1a820680a1bafda79ac3edc328f75662513029f9 (diff) |
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.
-rw-r--r-- | source/blender/nodes/geometry/nodes/node_geo_uv_unwrap.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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<float3> construct_uv_gvarray(const MeshComponent &component, edge_evaluator.evaluate(); const IndexMask seam = edge_evaluator.get_evaluated_as_mask(0); - Array<float3> uv(mesh->totloop); + Array<float3> uv(mesh->totloop, float3(0)); ParamHandle *handle = GEO_uv_parametrizer_construct_begin(); for (const int mp_index : selection) { |