From 5a35e56bcb7d48c2a5d6ef03ea8916aff0c9ea4e Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Mon, 30 Nov 2020 19:46:30 +0100 Subject: [PATCH] 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. --- source/blender/blenkernel/intern/mesh_runtime.c | 1 - 1 file changed, 1 deletion(-) 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.