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.
This commit is contained in:
Hans Goudey 2021-07-20 09:37:40 -04:00
parent c3a400b73f
commit 76a3ff70d5
Notes: blender-bot 2023-06-26 11:58:59 +02:00
Referenced by issue #89979, Blender crash: Curve to Mesh Geometry Node
1 changed files with 2 additions and 0 deletions

View File

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