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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user