Cleanup: get rid of last G.main in BMesh code.
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user