diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-02-13 16:29:27 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-02-13 16:31:56 +0300 |
commit | eb7f2457e589e1a071b2e3f45e1dd9f4ac1d62ed (patch) | |
tree | ce8f0af21355b817ed5a311ee243c4f723b3ef0c /source/blender/blenkernel/intern/mesh_runtime.c | |
parent | 5e3838faa2e6dae0ac52860085f5dc4b7a000ea5 (diff) |
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.
Diffstat (limited to 'source/blender/blenkernel/intern/mesh_runtime.c')
-rw-r--r-- | source/blender/blenkernel/intern/mesh_runtime.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |