diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-11-15 20:28:43 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-11-15 20:29:02 +0300 |
commit | 113a70808c217e432719531571f7f07952e3d341 (patch) | |
tree | 09fc6c1dc85354462efa392e040941565e759b65 /source | |
parent | c2164e579c3dde8c0fbb42e0c146bfd5ad1b563b (diff) |
Fix T57854: Disable viewport visibility crash
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc b/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc index 0c50ce6b82a..a86ea02d5e7 100644 --- a/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc +++ b/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc @@ -375,6 +375,9 @@ void view_layer_remove_invisible_bases(const Depsgraph *depsgraph, BLI_addtail(&visible_bases, base); } else { + if (base == view_layer->basact) { + view_layer->basact = NULL; + } MEM_freeN(base); } } |