Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <bastien@blender.org>2020-11-30 21:46:30 +0300
committerBastien Montagne <bastien@blender.org>2020-11-30 21:47:42 +0300
commit5a35e56bcb7d48c2a5d6ef03ea8916aff0c9ea4e (patch)
treed31a9ffaa26ed50a47f775ce443831ecf393cd7c
parent814b2787caddf5bd81477bd7b5dea8c45c402a72 (diff)
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.
-rw-r--r--source/blender/blenkernel/intern/mesh_runtime.c1
1 files changed, 0 insertions, 1 deletions
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.