Rework/split test_object_materials().
authorBastien Montagne <montagne29@wanadoo.fr>
Fri, 8 Jul 2016 12:36:25 +0000 (14:36 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Fri, 8 Jul 2016 16:11:20 +0000 (18:11 +0200)
commitab993e373cf31c1790f7283b52bbd29b4849fbe7
treea4bfc1772f30985fb9aecef5b0b2b965cbffaad2
parent71f5df9f44dd6dfd125d6ea7f7f6542e6f9e7faa
Rework/split test_object_materials().

Now test_object_materials only handles one object. New test_all_objects_materials
checks the whole bmain->object list for cases where it is actually needed.

Should avoid some useless looping over all objects!
source/blender/blenkernel/BKE_material.h
source/blender/blenkernel/intern/material.c
source/blender/blenkernel/intern/mesh.c
source/blender/editors/mesh/meshtools.c
source/blender/editors/object/object_relations.c
source/blender/freestyle/intern/blender_interface/BlenderStrokeRenderer.cpp
source/blender/makesrna/intern/rna_main_api.c
source/blender/makesrna/intern/rna_object.c