[Bf-blender-cvs] [faac25fefed] master: Fix T99284: Undefined values output from UV nodes
Hans Goudey
noreply at git.blender.org
Wed Jul 6 01:01:15 CEST 2022
Commit: faac25fefedf4b3318d4f129ebda9efca16e48c5
Author: Hans Goudey
Date: Tue Jul 5 18:01:08 2022 -0500
Branches: master
https://developer.blender.org/rBfaac25fefedf4b3318d4f129ebda9efca16e48c5
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.
===================================================================
M source/blender/nodes/geometry/nodes/node_geo_uv_unwrap.cc
===================================================================
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) {
More information about the Bf-blender-cvs
mailing list