diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-02-27 21:25:21 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-02-27 21:37:42 +0300 |
commit | 3ad2d6caef7410aec67ebde416f03c9a06014e8a (patch) | |
tree | 3df08217cdf457329221c1f452d21c7f74cebebe /source/blender/blenloader/intern/writefile.c | |
parent | 8c4b5ac4c1b496e04bc44ed25f0e89335445ba51 (diff) |
Cleanup: better names and comments for library ID linking code.
Differential Revision: https://developer.blender.org/D4415
Diffstat (limited to 'source/blender/blenloader/intern/writefile.c')
-rw-r--r-- | source/blender/blenloader/intern/writefile.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c index 24784684f41..ef2c73a675f 100644 --- a/source/blender/blenloader/intern/writefile.c +++ b/source/blender/blenloader/intern/writefile.c @@ -3752,6 +3752,7 @@ static void write_libraries(WriteData *wd, Main *main) } } + /* Write link placeholders for all direct linked IDs. */ while (a--) { for (id = lbarray[a]->first; id; id = id->next) { if (id->us > 0 && (id->tag & LIB_TAG_EXTERN)) { @@ -3760,7 +3761,7 @@ static void write_libraries(WriteData *wd, Main *main) "but is flagged as directly linked", id->name, main->curlib->filepath); BLI_assert(0); } - writestruct(wd, ID_ID, ID, 1, id); + writestruct(wd, ID_LINK_PLACEHOLDER, ID, 1, id); } } } |