[Bf-blender-cvs] [ece8ecb4ddd] master: Cleanup: remove unnecessary NULL test

Brecht Van Lommel noreply at git.blender.org
Fri May 22 22:59:37 CEST 2020


Commit: ece8ecb4ddd2a12791b18aaf73ce8faa3dae7754
Author: Brecht Van Lommel
Date:   Wed May 20 16:20:22 2020 +0200
Branches: master
https://developer.blender.org/rBece8ecb4ddd2a12791b18aaf73ce8faa3dae7754

Cleanup: remove unnecessary NULL test

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

M	source/blender/blenkernel/intern/DerivedMesh.c

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

diff --git a/source/blender/blenkernel/intern/DerivedMesh.c b/source/blender/blenkernel/intern/DerivedMesh.c
index b3893d8600f..52fe51afcb2 100644
--- a/source/blender/blenkernel/intern/DerivedMesh.c
+++ b/source/blender/blenkernel/intern/DerivedMesh.c
@@ -1798,9 +1798,7 @@ static void mesh_build_data(struct Depsgraph *depsgraph,
     }
   }
 
-  if (mesh_eval != NULL) {
-    mesh_runtime_check_normals_valid(mesh_eval);
-  }
+  mesh_runtime_check_normals_valid(mesh_eval);
   mesh_build_extra_data(depsgraph, ob, mesh_eval);
 }



More information about the Bf-blender-cvs mailing list