diff options
author | Hans Goudey <h.goudey@me.com> | 2022-02-24 19:57:53 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-02-24 19:57:53 +0300 |
commit | cc966c548d681e982df63254f5a3a117b681473b (patch) | |
tree | f9e753a7624ec4daac18ba3b06a08f78fe2da4b4 /source/blender/bmesh | |
parent | 7c1b0dec00ba42c61eba5d710b180b7333a9e964 (diff) | |
parent | 7b37d980b97fd6f2fde7561c5f2a881f46db2c1f (diff) |
Merge branch 'blender-v3.1-release'
Diffstat (limited to 'source/blender/bmesh')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_mesh_convert.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/bmesh/intern/bmesh_mesh_convert.cc b/source/blender/bmesh/intern/bmesh_mesh_convert.cc index de86660c78f..ecdc86d31cf 100644 --- a/source/blender/bmesh/intern/bmesh_mesh_convert.cc +++ b/source/blender/bmesh/intern/bmesh_mesh_convert.cc @@ -934,9 +934,9 @@ void BM_mesh_bm_to_me(Main *bmain, BMesh *bm, Mesh *me, const struct BMeshToMesh CustomData_add_layer(&me->ldata, CD_MLOOP, CD_ASSIGN, mloop, me->totloop); CustomData_add_layer(&me->pdata, CD_MPOLY, CD_ASSIGN, mpoly, me->totpoly); - /* There is no way to tell if BMesh normals are dirty or not. Instead of calculating the normals - * on the BMesh possibly unnecessarily, just tag them dirty on the resulting mesh. */ - BKE_mesh_normals_tag_dirty(me); + /* Clear normals on the mesh completely, since the original vertex and polygon count might be + * different than the BMesh's. */ + BKE_mesh_clear_derived_normals(me); me->cd_flag = BM_mesh_cd_flag_from_bmesh(bm); |