Workspaces: Changing active view layer doesn't update viewport visibility
Open, ConfirmedPublic

Description

Blender Version
Broken: fe1e2c2f89

Short description of error
Disabled collections are "visible" when switch back and forth workspace viewlayers.

Exact steps for others to reproduce the error

  • Default Blender, disable Collection 1
  • Switch to "Viewport" view layer
  • Switch back to "RenderLayer" view layer

If we force depsgraph visibility to be re-evaluated (e.g., by changing the selectability of a collection) we get the "Viewport" to properly hide its objects.

I don't know if this is a depsgraph or workspaces bug to be honest.

Details

Type
Bug
Dalai Felinto (dfelinto) triaged this task as Confirmed priority.

We could simply ask depsgraph to re-evaluate the collections' visibility when changing workspace (DEG_id_tag_update(&scene->id, 0);). But I thought we already had a different depsgraph per viewlayer, so this shouldn't be necessary.