From ae57d86d42c7f2184c657c8118ebffad30baf6ee Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Tue, 25 Apr 2023 15:49:32 -0400 Subject: [PATCH] Fix #107095: Spikes during multires reshape propagation Linear subdivision or interpolating from a lower multires level gave spikes at some vertices. Caused by incorrect corner edge indexing. This was simple to solve by building the old MLoop array on demand and reverting parts of 16fbadde363c8074ec72. --- source/blender/blenkernel/intern/subdiv_foreach.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/blenkernel/intern/subdiv_foreach.cc b/source/blender/blenkernel/intern/subdiv_foreach.cc index aec8ce600f9..95c8ff6ea7c 100644 --- a/source/blender/blenkernel/intern/subdiv_foreach.cc +++ b/source/blender/blenkernel/intern/subdiv_foreach.cc @@ -1728,7 +1728,7 @@ static void subdiv_foreach_mark_non_loose_geometry(SubdivForeachTaskContext *ctx for (const int poly_index : ctx->coarse_polys.index_range()) { for (const int corner : ctx->coarse_polys[poly_index]) { BLI_BITMAP_ENABLE(ctx->coarse_vertices_used_map, ctx->coarse_corner_verts[corner]); - BLI_BITMAP_ENABLE(ctx->coarse_edges_used_map, ctx->coarse_corner_verts[corner]); + BLI_BITMAP_ENABLE(ctx->coarse_edges_used_map, ctx->coarse_corner_edges[corner]); } } }