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.
This commit is contained in:
Hans Goudey 2022-07-05 18:01:08 -05:00
parent 1a820680a1
commit faac25fefe
Notes: blender-bot 2023-05-22 12:40:41 +02:00
Referenced by issue #99704, Regression: Crash with boolean modifier
Referenced by issue #99284, uv unwrap node, weird values
1 changed files with 1 additions and 1 deletions

View File

@ -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) {