diff options
author | Bastien Montagne <bastien@blender.org> | 2022-08-25 13:18:54 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2022-08-25 13:22:38 +0300 |
commit | ee7bd79b54a32d64fe0337695d438ad34990d121 (patch) | |
tree | 023dc1d0995c16ed01dbe809324585fbd38f7e3f /release | |
parent | d4764a385abb9420e139fffb8909dd914d894d6f (diff) |
LibOverride: Preserve viewlayers when creating overrides of collecitons.
Usually, when overriding collections, the linked reference ones are
removed from the ViewLayer, and the overrides replace them.
This change to `layer_collection_sync` code makes it so that in case
there is a free viewlayer hierarchy matching the linked collection, it
gets re-used for the override one, instead of re-creating everything
from scratch.
To achieve this, resync process is split into two steps, first regular
collections are processed, then the override ones. This should ensure
an override does not steal the layers of its reference if the later is
still instantiated in the view layer.
Diffstat (limited to 'release')
0 files changed, 0 insertions, 0 deletions