diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-09-03 14:42:47 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-09-03 14:42:47 +0300 |
commit | cd693955ad73a5aaf064199d956f5eb9c708577e (patch) | |
tree | 17091f699ef51c79153de43be4ff13665ee1f259 | |
parent | 3451cb56dbb368b82b2d36327288e064b5d32f04 (diff) |
Set active base to NULL if its object is gone
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index e6a4d872986..48c3ab47b1d 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -5771,6 +5771,9 @@ static void lib_link_view_layer(FileData *fd, Library *lib, ViewLayer *view_laye if (base->object == NULL) { /* Free in case linked object got lost. */ BLI_freelinkN(&view_layer->object_bases, base); + if (view_layer->basact == base) { + view_layer->basact = NULL; + } } } |