BKE_mesh_new → BKE_mesh_new_nomain

Including 'nomain' in the name explicitifies that the returned mesh is
NOT stored in any library.
This commit is contained in:
Sybren A. Stüvel 2018-05-08 10:59:41 +02:00
parent 86b9311926
commit cf7c3462ed
2 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ struct Mesh *BKE_mesh_copy(struct Main *bmain, const struct Mesh *me);
void BKE_mesh_update_customdata_pointers(struct Mesh *me, const bool do_ensure_tess_cd);
void BKE_mesh_ensure_skin_customdata(struct Mesh *me);
struct Mesh *BKE_mesh_new(int numVerts, int numEdges, int numTessFaces,int numLoops, int numPolys);
struct Mesh *BKE_mesh_new_nomain(int numVerts, int numEdges, int numTessFaces,int numLoops, int numPolys);
struct Mesh * BKE_mesh_from_template(
const struct Mesh *me_src,
int numVerts, int numEdges, int numTessFaces,

View File

@ -615,7 +615,7 @@ void BKE_mesh_copy_data(Main *bmain, Mesh *me_dst, const Mesh *me_src, const int
}
}
Mesh *BKE_mesh_new(int numVerts, int numEdges, int numTessFaces,int numLoops, int numPolys)
Mesh *BKE_mesh_new_nomain(int numVerts, int numEdges, int numTessFaces,int numLoops, int numPolys)
{
Mesh *mesh = BKE_libblock_alloc(NULL, ID_ME,
BKE_idcode_to_name(ID_ME),