Page MenuHome

Per-Viewport Collection Visibility
ClosedPublic

Authored by Dalai Felinto (dfelinto) on Tue, Aug 27, 9:56 PM.

Details

Summary

Support per-viewport collection visibility options.

Note: There is no way to show a collection that was not visible before
due to depsgraph. Otherwise we would risk having all the collections in
the depsgraph and I believe this is not the idea.

An alternative would be to have a new depsgraph for viewports that are
not local. Something to keep in mind if we do per-viewport current frame
in the future.

So for now what we do is to only allow collections visibility to be
disabled/hidden in this mode.

Diff Detail

Repository
rB Blender

Event Timeline

It's somewhat a shame that you can only enable a subset of Collections per viewport, although still a useful feature.

Suggestion: Maybe if you enable a Collection in a viewport that is not enabled in the View Layer, it also gets evaluated in depsgraph, and so it becomes possible to enable any Collection?

Small cleanup, removing commented out code

Implement resetting on file load

When loading with no UI it resets all uuids.
When loading with ui it still tries to clear up the unused uuids.

source/blender/makesrna/intern/rna_space.c
3970

Rename to Local Collections? We use "Local Camera" in the view settings and I think this is the same type of thing.

It used to be called "lock" in 2.7, but I think that's not really a clear name and different from how we use the term "lock" elsewhere in the UI.

hide_viewport (the eye icon in the outliner) is not used by the depsgraph. So I think collections hidden this way can still be visible as local collections.

We do want to make the depsgraph respect this in the future (for performance reasons), but there is nothing preventing us to take local collections into account for that as well.

This revision is now accepted and ready to land.Fri, Sep 13, 12:28 PM
  • From review rename: lock -> local
This revision was automatically updated to reflect the committed changes.