diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-06-17 07:56:39 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-06-17 08:08:19 +0300 |
commit | 6db290641e0ece4d8353638036211b45c2880604 (patch) | |
tree | a671b13ad7daf53772f4e03567b5bbd5194c9b94 /source/blender/blenkernel/intern/mesh_wrapper.c | |
parent | 286bd874453879e712d147708b7b508c98319056 (diff) |
Cleanup: split BKE_mesh_copy_settings into two functions
- BKE_mesh_copy_parameters_for_eval to be used for evaluated meshes only
as it doesn't handle ID user-counts.
- BKE_mesh_copy_parameters is a general function for copying parameters
between meshes.
Diffstat (limited to 'source/blender/blenkernel/intern/mesh_wrapper.c')
-rw-r--r-- | source/blender/blenkernel/intern/mesh_wrapper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/mesh_wrapper.c b/source/blender/blenkernel/intern/mesh_wrapper.c index 5df9f7816e3..cf1dba3325c 100644 --- a/source/blender/blenkernel/intern/mesh_wrapper.c +++ b/source/blender/blenkernel/intern/mesh_wrapper.c @@ -58,7 +58,7 @@ Mesh *BKE_mesh_wrapper_from_editmesh_with_coords(BMEditMesh *em, const Mesh *me_settings) { Mesh *me = BKE_id_new_nomain(ID_ME, NULL); - BKE_mesh_copy_settings(me, me_settings); + BKE_mesh_copy_parameters_for_eval(me, me_settings); BKE_mesh_runtime_ensure_edit_data(me); me->runtime.wrapper_type = ME_WRAPPER_TYPE_BMESH; |