Cleanup: Get rid of G.main in BKE_material.
authorBastien Montagne <montagne29@wanadoo.fr>
Tue, 29 May 2018 13:49:21 +0000 (15:49 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Tue, 29 May 2018 13:49:21 +0000 (15:49 +0200)
commitf7af08b5feecd89ea32c8905de1e61d575ff4bf1
treeb23f8e58157285ce3c6287f664f66bfcba85a69d
parentc72a204001ae32ab082af66b373ce19b64e28e2d
Cleanup: Get rid of G.main in BKE_material.

Note that in some cases, this only moves the G.main case to somne other
places - in particular, RNA getters/setters are becoming annoying here...
17 files changed:
source/blender/alembic/intern/abc_mesh.cc
source/blender/blenkernel/BKE_material.h
source/blender/blenkernel/BKE_mesh.h
source/blender/blenkernel/intern/library_remap.c
source/blender/blenkernel/intern/material.c
source/blender/blenkernel/intern/mesh.c
source/blender/collada/MeshImporter.cpp
source/blender/editors/mesh/editmesh_tools.c
source/blender/editors/object/object_relations.c
source/blender/editors/render/render_preview.c
source/blender/editors/render/render_shading.c
source/blender/editors/sculpt_paint/paint_image_proj.c
source/blender/editors/space_outliner/outliner_edit.c
source/blender/freestyle/intern/blender_interface/BlenderStrokeRenderer.cpp
source/blender/makesrna/intern/rna_ID.c
source/blender/makesrna/intern/rna_main_api.c
source/blender/makesrna/intern/rna_object.c