Blender Git Commit Log

Git Commits -> Revision 641a5be

Revision 641a5be by Bastien Montagne (master)
October 21, 2021, 10:55 (GMT)
IDManagement: Add option to clear asset data when making ID local.

When appending an asset from the asset browser, its asset data needs to
be cleared.

However, linking an asset (or regular append from the file browser)
should not clear such data. In linking case, it would be there again
after a blend file reload anyway.

So this commit introduces a new `BLO_LIBLINK_APPEND_ASSET_DATA_CLEAR`
option.

NOTE: in case the appended ID needs to be copied from its linked data
(instead of making the later directly local), asset data is lost anyway
since it is never copied with the ID currently.

Ref. {T91749} and D11768.

Commit Details:

Full Hash: 641a5be50e03f4a7152dd37e97680bee26dc3e6f
Parent Commit: 17a9605
Lines Changed: +44, -24

7 Modified Paths:

/source/blender/blenkernel/BKE_lib_id.h (+6, -2) (Diff)
/source/blender/blenkernel/intern/brush.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/lib_id.c (+20, -12) (Diff)
/source/blender/blenkernel/intern/object.c (+2, -2) (Diff)
/source/blender/blenloader/BLO_readfile.h (+2, -0) (Diff)
/source/blender/windowmanager/intern/wm_dragdrop.c (+3, -1) (Diff)
/source/blender/windowmanager/intern/wm_files_link.c (+9, -5) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021