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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user