From b6771ccaf6a547ae5463af7102fbe23a621c2bf2 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Mon, 4 Feb 2019 17:51:15 +0100 Subject: BKE_library: id_copy: More general usage of LIB_ID_COPY_LOCALIZE. Turns out most of our 'local working copy' cases can use same set of flags. Note that this commit adds LIB_ID_COPY_CACHES to all our local meshes copying, however this is no-op since that flag is unused during mesh copying... We may want to add another set of flags without that one at some point, but for now it would not be useful imho. --- source/blender/collada/collada_utils.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'source/blender/collada') diff --git a/source/blender/collada/collada_utils.cpp b/source/blender/collada/collada_utils.cpp index 63290f38ac8..1b9deded8a8 100644 --- a/source/blender/collada/collada_utils.cpp +++ b/source/blender/collada/collada_utils.cpp @@ -283,11 +283,7 @@ Mesh *bc_get_mesh_copy( tmpmesh = (Mesh *)ob->data; } - BKE_id_copy_ex(NULL, &tmpmesh->id, (ID **)&tmpmesh, - LIB_ID_CREATE_NO_MAIN | - LIB_ID_CREATE_NO_USER_REFCOUNT | - LIB_ID_CREATE_NO_DEG_TAG | - LIB_ID_COPY_NO_PREVIEW); + BKE_id_copy_ex(NULL, &tmpmesh->id, (ID **)&tmpmesh, LIB_ID_COPY_LOCALIZE); if (triangulate) { bc_triangulate_mesh(tmpmesh); -- cgit v1.2.3