[Bf-blender-cvs] [f5f8395e581] temp-vert-normals-cleanup: Cleanup: Remove redundant code

Hans Goudey noreply at git.blender.org
Fri Dec 10 00:13:44 CET 2021


Commit: f5f8395e5817c41ddc36acb322cbbf6de1a89e6e
Author: Hans Goudey
Date:   Thu Dec 9 17:08:04 2021 -0600
Branches: temp-vert-normals-cleanup
https://developer.blender.org/rBf5f8395e5817c41ddc36acb322cbbf6de1a89e6e

Cleanup: Remove redundant code

===================================================================

M	source/blender/blenkernel/intern/mesh_normals.cc

===================================================================

diff --git a/source/blender/blenkernel/intern/mesh_normals.cc b/source/blender/blenkernel/intern/mesh_normals.cc
index b36d1b58c0d..b4686d17a59 100644
--- a/source/blender/blenkernel/intern/mesh_normals.cc
+++ b/source/blender/blenkernel/intern/mesh_normals.cc
@@ -275,9 +275,6 @@ const float (*BKE_mesh_ensure_vertex_normals(const Mesh *mesh))[3]
   }
 
   Mesh &me = *const_cast<Mesh *>(mesh);
-  /* Clear the dirty flags, since the normals have been calculated. */
-  me.runtime.cd_dirty_vert &= ~CD_MASK_NORMAL;
-  me.runtime.cd_dirty_poly &= ~CD_MASK_NORMAL;
 
   MutableSpan<float3> vert_normals{(float3 *)BKE_mesh_vertex_normals_for_write(&me), me.totvert};
   MutableSpan<float3> poly_normals{(float3 *)BKE_mesh_face_normals_for_write(&me), me.totpoly};
@@ -314,8 +311,6 @@ const float (*BKE_mesh_ensure_face_normals(const Mesh *mesh))[3]
   }
 
   Mesh &me = *const_cast<Mesh *>(mesh);
-  /* Clear the dirty flag, since the normals have been calculated. */
-  me.runtime.cd_dirty_poly &= ~CD_MASK_NORMAL;
 
   float(*poly_normals)[3] = BKE_mesh_face_normals_for_write(&me);
   BKE_mesh_calc_normals_poly(



More information about the Bf-blender-cvs mailing list