Cleanup: get rid of last G.main in BMesh code.

This commit is contained in:
2018-06-13 16:29:12 +02:00
parent 5ff1d845ea
commit f61c30f804
20 changed files with 47 additions and 34 deletions

View File

@@ -442,7 +442,8 @@ void bc_triangulate_mesh(Mesh *me)
BM_mesh_triangulate(bm, quad_method, use_beauty, tag_only, NULL, NULL, NULL);
BMeshToMeshParams bm_to_me_params = {0};
BM_mesh_bm_to_me(bm, me, &bm_to_me_params);
bm_to_me_params.calc_object_remap = false;
BM_mesh_bm_to_me(NULL, bm, me, &bm_to_me_params);
BM_mesh_free(bm);
}