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.
This commit is contained in:
Bastien Montagne 2020-11-30 19:46:30 +01:00
parent 814b2787ca
commit 5a35e56bcb
1 changed files with 0 additions and 1 deletions

View File

@ -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.