Cleanup: BKE_library: remove 'test' param of id_copy.

This was used in *one* place only... much better to have a dedicated
helper for that kind of things. ;)
This commit is contained in:
2019-02-04 15:34:31 +01:00
parent 999f3985c0
commit 7636e9785d
52 changed files with 103 additions and 125 deletions

View File

@@ -722,8 +722,7 @@ static bool remap_hair_emitter(
LIB_ID_CREATE_NO_MAIN |
LIB_ID_CREATE_NO_USER_REFCOUNT |
LIB_ID_CREATE_NO_DEG_TAG |
LIB_ID_COPY_NO_PREVIEW,
false);
LIB_ID_COPY_NO_PREVIEW);
/* BMESH_ONLY, deform dm may not have tessface */
BKE_mesh_tessface_ensure(mesh);
@@ -1104,8 +1103,7 @@ static bool copy_particle_systems_to_object(const bContext *C,
LIB_ID_CREATE_NO_MAIN |
LIB_ID_CREATE_NO_USER_REFCOUNT |
LIB_ID_CREATE_NO_DEG_TAG |
LIB_ID_COPY_NO_PREVIEW,
false);
LIB_ID_COPY_NO_PREVIEW);
BKE_mesh_calc_normals(psmd->mesh_final);
BKE_mesh_tessface_ensure(psmd->mesh_final);