From eb7f2457e589e1a071b2e3f45e1dd9f4ac1d62ed Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Wed, 13 Feb 2019 14:29:27 +0100 Subject: Cleanup: do not cleanup runtime data twice during ID copying... More or less same code was being executed twice during ID copying. Makes no sense to add yet another switch-by-ID-type to handle specificaly runtime data during ID copying, we already have BKE_xxx_copy_data() functions for that. --- source/blender/blenkernel/intern/mesh_runtime.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '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 788558e5378..89bd6afa698 100644 --- a/source/blender/blenkernel/intern/mesh_runtime.c +++ b/source/blender/blenkernel/intern/mesh_runtime.c @@ -54,9 +54,10 @@ void BKE_mesh_runtime_reset(Mesh *mesh) /* Clear all pointers which we don't want to be shared on copying the datablock. * However, keep all the flags which defines what the mesh is (for example, that * it's deformed only, or that its custom data layers are out of date.) */ -void BKE_mesh_runtime_reset_on_copy(Mesh *mesh) +void BKE_mesh_runtime_reset_on_copy(Mesh *mesh, const int UNUSED(flag)) { Mesh_Runtime *runtime = &mesh->runtime; + runtime->edit_data = NULL; runtime->batch_cache = NULL; runtime->subdiv_ccg = NULL; -- cgit v1.2.3