Revert "Fix unnecessary corner edge computation in multires bake"

This reverts commit ef9d9c6856. Actually probably better to leave
this in, since it may be used by normal computation even if seemed to
work ok in tests.
This commit is contained in:
Brecht Van Lommel 2023-06-21 18:54:28 +02:00
parent ef9d9c6856
commit 5c240c9e29
1 changed files with 1 additions and 0 deletions

View File

@ -504,6 +504,7 @@ 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();