[Bf-blender-cvs] [3b4b2bcb132] master: Cleanup: Remove redundant vertex normal dirty tags

Hans Goudey noreply at git.blender.org
Mon Apr 25 23:30:13 CEST 2022


Commit: 3b4b2bcb1326fdd15011aade65d55079abd89f38
Author: Hans Goudey
Date:   Mon Apr 25 16:30:06 2022 -0500
Branches: master
https://developer.blender.org/rB3b4b2bcb1326fdd15011aade65d55079abd89f38

Cleanup: Remove redundant vertex normal dirty tags

Applying the coordinates already tags the normals dirty

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

M	source/blender/modifiers/intern/MOD_collision.c
M	source/blender/modifiers/intern/MOD_surface.c

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

diff --git a/source/blender/modifiers/intern/MOD_collision.c b/source/blender/modifiers/intern/MOD_collision.c
index 593610f5bad..f9cd3d5937d 100644
--- a/source/blender/modifiers/intern/MOD_collision.c
+++ b/source/blender/modifiers/intern/MOD_collision.c
@@ -120,7 +120,6 @@ static void deformVerts(ModifierData *md,
     uint mvert_num = 0;
 
     BKE_mesh_vert_coords_apply(mesh_src, vertexCos);
-    BKE_mesh_normals_tag_dirty(mesh_src);
 
     current_time = DEG_get_ctime(ctx->depsgraph);
 
diff --git a/source/blender/modifiers/intern/MOD_surface.c b/source/blender/modifiers/intern/MOD_surface.c
index c2869e590bd..af1de77d8c9 100644
--- a/source/blender/modifiers/intern/MOD_surface.c
+++ b/source/blender/modifiers/intern/MOD_surface.c
@@ -129,7 +129,6 @@ static void deformVerts(ModifierData *md,
     MVert *x, *v;
 
     BKE_mesh_vert_coords_apply(surmd->mesh, vertexCos);
-    BKE_mesh_normals_tag_dirty(surmd->mesh);
 
     mesh_verts_num = surmd->mesh->totvert;



More information about the Bf-blender-cvs mailing list