Blender Git Commit Log

Git Commits -> Revision 659ccd9

Revision 659ccd9 by Brecht Van Lommel (master)
September 19, 2019, 09:32 (GMT)
Fix T66154: viewlayer hide/exclude settings getting lost for linked collections

The problem was that the object and collection pointers in Base and
LayerCollection would get lost of file read. Normally such ID pointers would
be resolved by pointing to an ID_ID placeholder which has the datablock name,
and then replacing it will the real datablock. However ID_ID is only written
for directly linked datablocks.

This adds the concept of an indirectly linked datablock with a weak reference
to it. For this we write an ID_ID_WEAK_REF code, which is a reference that
will only be resolved if the datablock was read for another reason.

Differential Revision: https://developer.blender.org/D4416

Commit Details:

Full Hash: 659ccd9cd2ee79c462147b53c18ecc8b9faf74a6
Parent Commit: e7a5143
Lines Changed: +101, -14

7 Modified Paths:

/source/blender/blenkernel/BKE_library.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/layer.c (+9, -0) (Diff)
/source/blender/blenkernel/intern/library.c (+13, -0) (Diff)
/source/blender/blenkernel/intern/library_remap.c (+1, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+67, -12) (Diff)
/source/blender/blenloader/intern/writefile.c (+6, -2) (Diff)
/source/blender/makesdna/DNA_ID.h (+4, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021