Blender Git Loki
Git Commits -> Revision eadfd90
Revision eadfd90 by Bastien Montagne (master) January 30, 2017, 21:33 (GMT) |
Optimization: pass Main to BKE_library_foreach_ID_link() and use its relations. Use Main->relations in BKE_library_foreach_ID_link(), when possible (i.e. IDWALK_READONLY is set), and if the data is available of course. This is quite minor optimization, no sensible improvements are expected, but does not hurt either to avoid potentially tens of looping over e.g. objects constraints and modifiers, or heap of drivers... |
Commit Details:
Full Hash: eadfd901ad7c3af4d85b05618352a96a9b4ca9de
Parent Commit: fbd28d3
Lines Changed: +41, -26
10 Modified Paths:
/source/blender/blenkernel/BKE_library.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_library_query.h (+2, -1) (Diff)
/source/blender/blenkernel/intern/brush.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/library.c (+6, -6) (Diff)
/source/blender/blenkernel/intern/library_query.c (+23, -9) (Diff)
/source/blender/blenkernel/intern/library_remap.c (+3, -3) (Diff)
/source/blender/blenkernel/intern/object.c (+1, -1) (Diff)
/source/blender/editors/object/object_relations.c (+2, -2) (Diff)
/source/blender/python/intern/bpy_rna_id_collection.c (+1, -1) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+1, -1) (Diff)
/source/blender/blenkernel/BKE_library_query.h (+2, -1) (Diff)
/source/blender/blenkernel/intern/brush.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/library.c (+6, -6) (Diff)
/source/blender/blenkernel/intern/library_query.c (+23, -9) (Diff)
/source/blender/blenkernel/intern/library_remap.c (+3, -3) (Diff)
/source/blender/blenkernel/intern/object.c (+1, -1) (Diff)
/source/blender/editors/object/object_relations.c (+2, -2) (Diff)
/source/blender/python/intern/bpy_rna_id_collection.c (+1, -1) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+1, -1) (Diff)