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:
2022-07-05 18:01:08 -05:00
parent 1a820680a1
commit faac25fefe

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