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

@@ -37,6 +37,7 @@
#include "BKE_depsgraph.h"
#include "BKE_customdata.h"
#include "BKE_DerivedMesh.h"
#include "BKE_global.h"
#include "bmesh.h"
@@ -905,6 +906,7 @@ static PyObject *bpy_bmesh_to_mesh(BPy_BMesh *self, PyObject *args)
BM_mesh_cd_validate(bm);
BM_mesh_bm_to_me(
G.main, /* XXX UGLY! */
bm, me,
(&(struct BMeshToMeshParams){
.calc_object_remap = true,