Refactor BKE_id_copy to return the new ID pointer.

No reasons to keep the new ID pointer as parameter here.

Part of T71219.
This commit is contained in:
2020-10-07 16:13:01 +02:00
parent 7c9131d11e
commit 03ef0cfe3c
33 changed files with 46 additions and 109 deletions

View File

@@ -1019,9 +1019,7 @@ Mesh *BKE_mesh_copy_for_eval(struct Mesh *source, bool reference)
Mesh *BKE_mesh_copy(Main *bmain, const Mesh *me)
{
Mesh *me_copy;
BKE_id_copy(bmain, &me->id, (ID **)&me_copy);
return me_copy;
return (Mesh *)BKE_id_copy(bmain, &me->id);
}
BMesh *BKE_mesh_to_bmesh_ex(const Mesh *me,