Blender Git Loki

Git Commits -> Revision cef3d42

Revision cef3d42 by Bastien Montagne (temp-ui-tweaks)
September 22, 2021, 13:54 (GMT)
LibLink: New Append code.

This commit fully refactors the way linked IDs are made local when
appended.

Previously, `BKE_library_make_local` was (ab)used for this task, but it
was missing some contextual data and doing complex processing to try to
work around this, with limited sucess. Further more, it was nearly
impossibe to extend (e.g. to get new append behaviors necessary for the
asset project).

The new code is a dedicated append step in WM linking process.

NOTE: BPY API (`libray.load()` context manager) uses its own code here,
which still relies on `BKE_library_make_local` for appending.
Unfortunately, merging those two different code paths is not trivial so
for now this API will remain unchanged.

Fix T55629: Append already linked Data is impossible.

Commit Details:

Full Hash: cef3d4225c4c68ce9deeb8f8675b3ee31a83ce25
Parent Commit: abe1665
Committed By: Pablo Vazquez
Lines Changed: +636, -47

3 Modified Paths:

/source/blender/blenloader/intern/versioning_280.c (+1, -1) (Diff)
/source/blender/makesdna/DNA_space_types.h (+2, -2) (Diff)
/source/blender/windowmanager/intern/wm_files_link.c (+633, -44) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021