diff options
author | Hans Goudey <h.goudey@me.com> | 2021-07-20 16:37:40 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-07-20 16:37:40 +0300 |
commit | 76a3ff70d599a54203888dd7131b0d48da0107d6 (patch) | |
tree | 227a0949634469dfdf7fb002e04d0b32f66868aa | |
parent | c3a400b73fbf46f1b8cfa1a5735e2a96254974b2 (diff) |
Fix T89979: Assert in edit mode with curve to mesh node
The node tagged polys normals dirty, but the function to calculate the
normals didn't clear the dirty flags for polys. Now clear the poly and
corner dirty normal flags.
-rw-r--r-- | source/blender/blenkernel/intern/mesh.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/mesh.c b/source/blender/blenkernel/intern/mesh.c index b463d903303..8d74002ad79 100644 --- a/source/blender/blenkernel/intern/mesh.c +++ b/source/blender/blenkernel/intern/mesh.c @@ -1874,6 +1874,8 @@ void BKE_mesh_calc_normals_split_ex(Mesh *mesh, MLoopNorSpaceArray *r_lnors_spac } mesh->runtime.cd_dirty_vert &= ~CD_MASK_NORMAL; + mesh->runtime.cd_dirty_poly &= ~CD_MASK_NORMAL; + mesh->runtime.cd_dirty_loop &= ~CD_MASK_NORMAL; } void BKE_mesh_calc_normals_split(Mesh *mesh) |