Blender Git Loki
Git Commits -> Revision 7b1c406
Revision 7b1c406 by Bastien Montagne (master) July 9, 2020, 15:56 (GMT) |
Implement T77959: Never duplicate linked data during deep-copy. Note that this behavior is enforced on user level for now, but on code side it is controlled with a flag, which should make it easy to refine that behavior if needed. Only exception is when we duplicate a linked ID directly (then we assume user wants a local deep-copy of that linked data, and we always also duplicate linked sub-data-blocks). Note that this commit also slightly refactor the handling of actions of animdata, by simplifying `BKE_animdata_copy_id_action()` and adding an explicit new `BKE_animdata_duplicate_id_action()` to be used during ID duplication (deep copy). This also allows us to get rid of the special case for liboverrides. |
Commit Details:
Full Hash: 7b1c406b5431ce65d84ddb5f2c53977c25c18373
Parent Commit: 78b629a
Lines Changed: +119, -92
10 Modified Paths:
/source/blender/blenkernel/BKE_anim_data.h (+5, -1) (Diff)
/source/blender/blenkernel/BKE_lib_id.h (+0, -1) (Diff)
/source/blender/blenkernel/BKE_object.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/anim_data.c (+22, -5) (Diff)
/source/blender/blenkernel/intern/collection.c (+19, -14) (Diff)
/source/blender/blenkernel/intern/lib_id.c (+26, -28) (Diff)
/source/blender/blenkernel/intern/object.c (+28, -27) (Diff)
/source/blender/blenkernel/intern/scene.c (+10, -9) (Diff)
/source/blender/editors/object/object_relations.c (+6, -6) (Diff)
/source/blender/makesdna/DNA_userdef_types.h (+2, -0) (Diff)
/source/blender/blenkernel/BKE_lib_id.h (+0, -1) (Diff)
/source/blender/blenkernel/BKE_object.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/anim_data.c (+22, -5) (Diff)
/source/blender/blenkernel/intern/collection.c (+19, -14) (Diff)
/source/blender/blenkernel/intern/lib_id.c (+26, -28) (Diff)
/source/blender/blenkernel/intern/object.c (+28, -27) (Diff)
/source/blender/blenkernel/intern/scene.c (+10, -9) (Diff)
/source/blender/editors/object/object_relations.c (+6, -6) (Diff)
/source/blender/makesdna/DNA_userdef_types.h (+2, -0) (Diff)