[Bf-blender-cvs] [5a35e56bcb7] master: Cleanup: Remove unecessary code.

Bastien Montagne noreply at git.blender.org
Mon Nov 30 19:47:49 CET 2020


Commit: 5a35e56bcb7d48c2a5d6ef03ea8916aff0c9ea4e
Author: Bastien Montagne
Date:   Mon Nov 30 19:46:30 2020 +0100
Branches: master
https://developer.blender.org/rB5a35e56bcb7d48c2a5d6ef03ea8916aff0c9ea4e

Cleanup: Remove unecessary code.

We already `memset` the whole mesh runtime to zero, no need to set some
of its pointer explicitly to NULL afterward.

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

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

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

diff --git a/source/blender/blenkernel/intern/mesh_runtime.c b/source/blender/blenkernel/intern/mesh_runtime.c
index f35f4ae3501..b5257983b8c 100644
--- a/source/blender/blenkernel/intern/mesh_runtime.c
+++ b/source/blender/blenkernel/intern/mesh_runtime.c
@@ -51,7 +51,6 @@ void BKE_mesh_runtime_reset(Mesh *mesh)
   memset(&mesh->runtime, 0, sizeof(mesh->runtime));
   mesh->runtime.eval_mutex = MEM_mallocN(sizeof(ThreadMutex), "mesh runtime eval_mutex");
   BLI_mutex_init(mesh->runtime.eval_mutex);
-  mesh->runtime.bvh_cache = NULL;
 }
 
 /* Clear all pointers which we don't want to be shared on copying the datablock.



More information about the Bf-blender-cvs mailing list