Cleanup: get rid of last G.main in BMesh code.
This commit is contained in:
@@ -365,7 +365,7 @@ static bool ED_object_editmode_load_ex(Main *bmain, Object *obedit, const bool f
|
||||
return false;
|
||||
}
|
||||
|
||||
EDBM_mesh_load(obedit);
|
||||
EDBM_mesh_load(bmain, obedit);
|
||||
|
||||
if (freedata) {
|
||||
EDBM_mesh_free(me->edit_btmesh);
|
||||
|
||||
@@ -315,7 +315,7 @@ static bool object_hook_index_array(Main *bmain, Scene *scene, Object *obedit,
|
||||
|
||||
BMEditMesh *em;
|
||||
|
||||
EDBM_mesh_load(obedit);
|
||||
EDBM_mesh_load(bmain, obedit);
|
||||
EDBM_mesh_make(obedit, scene->toolsettings->selectmode, true);
|
||||
|
||||
DAG_id_tag_update(obedit->data, 0);
|
||||
|
||||
@@ -139,7 +139,7 @@ static int vertex_parent_set_exec(bContext *C, wmOperator *op)
|
||||
Mesh *me = obedit->data;
|
||||
BMEditMesh *em;
|
||||
|
||||
EDBM_mesh_load(obedit);
|
||||
EDBM_mesh_load(bmain, obedit);
|
||||
EDBM_mesh_make(obedit, scene->toolsettings->selectmode, true);
|
||||
|
||||
DAG_id_tag_update(obedit->data, 0);
|
||||
|
||||
Reference in New Issue
Block a user