Cleanup: get rid of last G.main's in bpy area.

Essentially 'validating' them as G_MAIN, and adding some asserts in
dubious places, that handled IDs are actually in G_MAIN.
This commit is contained in:
2018-06-22 11:37:47 +02:00
parent 1870a1adc7
commit cbf5c738d6
9 changed files with 21 additions and 14 deletions

View File

@@ -95,7 +95,7 @@ static PyObject *bpy_lib_write(PyObject *UNUSED(self), PyObject *args, PyObject
return NULL;
}
Main *bmain_src = G.main;
Main *bmain_src = G_MAIN;
int write_flags = 0;
if (use_relative_remap) {