Cleanup: get rid of last G.main's in bpy area.
authorBastien Montagne <montagne29@wanadoo.fr>
Fri, 22 Jun 2018 09:37:47 +0000 (11:37 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Fri, 22 Jun 2018 09:37:47 +0000 (11:37 +0200)
commitcbf5c738d6edaa3e5feecab6a97327cbfd96e06e
treeea06760f7501bf735d9a6dc6c8242da59f3db671
parent1870a1adc75dece1e9eac3aa632da6e903780c86
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.
source/blender/python/bmesh/bmesh_py_types.c
source/blender/python/generic/bpy_internal_import.c
source/blender/python/generic/bpy_internal_import.h
source/blender/python/intern/bpy.c
source/blender/python/intern/bpy_library_write.c
source/blender/python/intern/bpy_rna.c
source/blender/python/intern/bpy_rna_anim.c
source/blender/python/intern/bpy_rna_id_collection.c
source/blender/python/intern/gpu_offscreen.c