Cleanup: use const mesh arg to BM_mesh_bm_from_me
Needed for D3966
This commit is contained in:
@@ -83,7 +83,7 @@ extern "C" {
|
||||
/* *** mesh.c *** */
|
||||
|
||||
struct BMesh *BKE_mesh_to_bmesh_ex(
|
||||
struct Mesh *me,
|
||||
const struct Mesh *me,
|
||||
const struct BMeshCreateParams *create_params,
|
||||
const struct BMeshFromMeshParams *convert_params);
|
||||
struct BMesh *BKE_mesh_to_bmesh(
|
||||
|
||||
@@ -718,7 +718,7 @@ Mesh *BKE_mesh_copy(Main *bmain, const Mesh *me)
|
||||
}
|
||||
|
||||
BMesh *BKE_mesh_to_bmesh_ex(
|
||||
Mesh *me,
|
||||
const Mesh *me,
|
||||
const struct BMeshCreateParams *create_params,
|
||||
const struct BMeshFromMeshParams *convert_params)
|
||||
{
|
||||
|
||||
@@ -193,7 +193,7 @@ static BMFace *bm_face_create_from_mpoly(
|
||||
* \warning This function doesn't calculate face normals.
|
||||
*/
|
||||
void BM_mesh_bm_from_me(
|
||||
BMesh *bm, Mesh *me,
|
||||
BMesh *bm, const Mesh *me,
|
||||
const struct BMeshFromMeshParams *params)
|
||||
{
|
||||
const bool is_new =
|
||||
|
||||
@@ -52,7 +52,7 @@ struct BMeshFromMeshParams {
|
||||
int64_t cd_mask_extra;
|
||||
};
|
||||
void BM_mesh_bm_from_me(
|
||||
BMesh *bm, struct Mesh *me,
|
||||
BMesh *bm, const struct Mesh *me,
|
||||
const struct BMeshFromMeshParams *params)
|
||||
ATTR_NONNULL(1, 3);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user