Fix unnecessary corner edge computation in multires bake

The root of the bug was wrong edges, but it wasn't necessary to compute
corner edges at all and this was unnecessarily added in 16fbadde36.

Ref #109161
This commit is contained in:
Brecht Van Lommel
2023-06-21 18:42:48 +02:00
parent d622673f4b
commit ef9d9c6856

View File

@@ -504,7 +504,6 @@ static void do_multires_bake(MultiresBakeRender *bkr,
{reinterpret_cast<const blender::int2 *>(dm->getEdgeArray(dm)), temp_mesh->totedge});
temp_mesh->poly_offsets_for_write().copy_from({dm->getPolyArray(dm), temp_mesh->totpoly + 1});
temp_mesh->corner_verts_for_write().copy_from({dm->getCornerVertArray(dm), temp_mesh->totloop});
temp_mesh->corner_edges_for_write().copy_from({dm->getCornerEdgeArray(dm), temp_mesh->totloop});
const blender::Span<blender::float3> positions = temp_mesh->vert_positions();
const blender::OffsetIndices polys = temp_mesh->polys();