Blender Git Loki

Git Commits -> Revision b3b7319

Revision b3b7319 by Bastien Montagne (master)
October 19, 2021, 14:26 (GMT)
Fix T92224: Refactor of append code unexpectedly changed behavior with 'localize all' off.

In 2.93 and before, when appending wityh 'localize all' off, all linked
IDs (including indirectly linked ones) from initial library would be
made local.
In 3.0, after refactor from rB3be5ce4aad5e, only directly linked IDs
(i.e. user-selected IDs) would be made local.

This change was not intentional (result of confusing code and naming in
previous implementation), and old behavior is used in some workflows to
control which data is kept linked and which data is made local.

This commit revert to 2.93 behavior.

NOTE: there is still an (extreme) corner case where behavior is
different between 2.93 and 3.0:
If you append (at the same time) object A from LibA.blend, and object B
from LibB.blend, and object B uses somehow a material from LibA.blend:
* In 2.93, that material would have been made local (because it belonged
to one of the 'initial' libraries, even though not the initial lib of
object B).
* In 3.0, this material will remain linked, since from object B
persective it comes from a different library.

Commit Details:

Full Hash: b3b7319de7aaa17d96e304857bc57401bb11ad17
Parent Commit: 1c5722b
Lines Changed: +11, -4

2 Modified Paths:

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