Blender Git Commit Log
Git Commits -> Revision d8d4bef
Revision d8d4bef by Bastien Montagne (master) July 21, 2016, 14:54 (GMT) |
Refactor/deduplicate even more make_local code (and fix part of T48907). Turns out most BKE_foo_make_local datablock-specific functions are actually doing exactly the same thing, only two currently need special additional operations (object and brush ones). So added a BKE_id_make_local_generic instead of copying same code over and over. Also, changed a bit how make_local works in case we are localizing a whole library. We need to do the 'remap' step (from old linked ID to new local one) in the second loop, otherwise we miss some dependencies. This fixes main part of T48907. |
Commit Details:
Full Hash: d8d4bef6ccc3556a5691e5b633ebad895a795872
Parent Commit: 2977dcf
Lines Changed: +140, -462
36 Modified Paths:
/source/blender/blenkernel/BKE_action.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_armature.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_brush.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_camera.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_curve.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_image.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_lamp.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_lattice.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_library.h (+2, -1) (Diff)
/source/blender/blenkernel/BKE_material.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_mball.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_mesh.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_node.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_object.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_particle.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_speaker.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_texture.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_world.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/action.c (+2, -27) (Diff)
/source/blender/blenkernel/intern/armature.c (+2, -27) (Diff)
/source/blender/blenkernel/intern/brush.c (+5, -3) (Diff)
/source/blender/blenkernel/intern/camera.c (+2, -27) (Diff)
/source/blender/blenkernel/intern/curve.c (+2, -27) (Diff)
/source/blender/blenkernel/intern/image.c (+2, -27) (Diff)
/source/blender/blenkernel/intern/lamp.c (+2, -27) (Diff)
/source/blender/blenkernel/intern/lattice.c (+2, -27) (Diff)
/source/blender/blenkernel/intern/library.c (+80, -33) (Diff)
/source/blender/blenkernel/intern/material.c (+2, -27) (Diff)
/source/blender/blenkernel/intern/mball.c (+2, -27) (Diff)
/source/blender/blenkernel/intern/mesh.c (+2, -27) (Diff)
/source/blender/blenkernel/intern/node.c (+2, -27) (Diff)
/source/blender/blenkernel/intern/object.c (+6, -3) (Diff)
/source/blender/blenkernel/intern/particle.c (+2, -27) (Diff)
/source/blender/blenkernel/intern/speaker.c (+2, -27) (Diff)
/source/blender/blenkernel/intern/texture.c (+2, -27) (Diff)
/source/blender/blenkernel/intern/world.c (+2, -27) (Diff)
/source/blender/blenkernel/BKE_armature.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_brush.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_camera.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_curve.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_image.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_lamp.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_lattice.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_library.h (+2, -1) (Diff)
/source/blender/blenkernel/BKE_material.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_mball.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_mesh.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_node.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_object.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_particle.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_speaker.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_texture.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_world.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/action.c (+2, -27) (Diff)
/source/blender/blenkernel/intern/armature.c (+2, -27) (Diff)
/source/blender/blenkernel/intern/brush.c (+5, -3) (Diff)
/source/blender/blenkernel/intern/camera.c (+2, -27) (Diff)
/source/blender/blenkernel/intern/curve.c (+2, -27) (Diff)
/source/blender/blenkernel/intern/image.c (+2, -27) (Diff)
/source/blender/blenkernel/intern/lamp.c (+2, -27) (Diff)
/source/blender/blenkernel/intern/lattice.c (+2, -27) (Diff)
/source/blender/blenkernel/intern/library.c (+80, -33) (Diff)
/source/blender/blenkernel/intern/material.c (+2, -27) (Diff)
/source/blender/blenkernel/intern/mball.c (+2, -27) (Diff)
/source/blender/blenkernel/intern/mesh.c (+2, -27) (Diff)
/source/blender/blenkernel/intern/node.c (+2, -27) (Diff)
/source/blender/blenkernel/intern/object.c (+6, -3) (Diff)
/source/blender/blenkernel/intern/particle.c (+2, -27) (Diff)
/source/blender/blenkernel/intern/speaker.c (+2, -27) (Diff)
/source/blender/blenkernel/intern/texture.c (+2, -27) (Diff)
/source/blender/blenkernel/intern/world.c (+2, -27) (Diff)