Blender Git Commit Log
Git Commits -> Revision 3ada194
Revision 3ada194 by Campbell Barton (master) June 18, 2020, 05:49 (GMT) |
Python API: path mapping options for library writing function When "Relative Remap" option was added, the intention was only to remap paths that were already relative. However it remapped all paths. This was reported as T62612 and fixed recently, however some Python script authors depended on the old behavior. For users, it's reasonable to use the existing operators to make paths absolute/relative. For scripts however it's useful to be able to write out individual data-blocks with the ability to make all paths relative. Now `bpy.data.libraries.write()` takes a path_remap argument which can be `NONE/RELATIVE/RELATIVE_ALL/ABSOLUTE` allowing the script author to choose how paths are handled when writing out data-blocks. Addresses T77768. |
Commit Details:
Full Hash: 3ada1949f8633293b4a424bf20789d94cf924c43
Parent Commit: aab165b
Lines Changed: +139, -54
10 Modified Paths:
/source/blender/blenkernel/BKE_blendfile.h (+1, -0) (Diff)
/source/blender/blenkernel/BKE_global.h (+2, -5) (Diff)
/source/blender/blenkernel/intern/blender_copybuffer.c (+3, -2) (Diff)
/source/blender/blenkernel/intern/blender_undo.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/blendfile.c (+7, -4) (Diff)
/source/blender/blenloader/BLO_writefile.h (+24, -3) (Diff)
/source/blender/blenloader/intern/writefile.c (+56, -17) (Diff)
/source/blender/python/intern/bpy_library_write.c (+27, -14) (Diff)
/source/blender/windowmanager/intern/wm_files.c (+17, -7) (Diff)
/source/blender/windowmanager/intern/wm_init_exit.c (+1, -1) (Diff)
/source/blender/blenkernel/BKE_global.h (+2, -5) (Diff)
/source/blender/blenkernel/intern/blender_copybuffer.c (+3, -2) (Diff)
/source/blender/blenkernel/intern/blender_undo.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/blendfile.c (+7, -4) (Diff)
/source/blender/blenloader/BLO_writefile.h (+24, -3) (Diff)
/source/blender/blenloader/intern/writefile.c (+56, -17) (Diff)
/source/blender/python/intern/bpy_library_write.c (+27, -14) (Diff)
/source/blender/windowmanager/intern/wm_files.c (+17, -7) (Diff)
/source/blender/windowmanager/intern/wm_init_exit.c (+1, -1) (Diff)