diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2016-11-24 20:07:19 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2016-11-24 20:07:19 +0300 |
commit | 041e2d3e28c549beb1a40a7ee70597f6a9fc1d7a (patch) | |
tree | 0808cbd0af0b6d2e7528c2662e7dcfc5db189fc9 /source/blender/blenloader/intern/readfile.c | |
parent | be976500fe6d8d7f6df15298ea806caaa42a0009 (diff) |
Base list refcount with Bastien Montagnelayers
Diffstat (limited to 'source/blender/blenloader/intern/readfile.c')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 9f87925bce0..9a45f242287 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -5507,6 +5507,7 @@ static void direct_link_layer_collections(FileData *fd , ListBase *lb) for (LinkData *ld = lc->elements.first; ld; ld = ld->next) { ld->data = newdataadr(fd, ld->data); + ((Base *)ld->data)->refcount++; } direct_link_layer_collections(fd, &lc->collections); @@ -5758,7 +5759,11 @@ static void direct_link_scene(FileData *fd, Scene *sce) for (sl = sce->layers.first; sl; sl = sl->next) { sl->obedit = NULL; sl->basact = newdataadr(fd, sl->basact); + link_list(fd, &(sl->base)); + for (Base *base = sl->base.first; base; base = base->next) { + base->refcount++; + } /* recursively direct link the layer collections */ direct_link_layer_collections(fd, &(sl->collections)); |