Page MenuHome

Fix T77161: Outliner - Hiding in viewport a Collection does not gray out its children objects
ClosedPublic

Authored by Manuel Castilla (manzanilla) on Jun 2 2020, 10:40 AM.

Details

Summary

Problem
When unchecking "Hide in Viewport" option for a collection it grays out itself and his children collections but
not his children objects.
It doesn't make sense because if you uncheck the option in the child object item it's grayed out.
So the same should occur if it's single parent collection option is unchecked.

Patch
For checking an object visibility in the viewport the flag "BASE_VISIBLE_VIEWLAYER"
should be used instead of "BASE_VISIBLE_DEPSGRAPH" because the later ignores viewport visibility.

Diff Detail

Repository
rB Blender

Event Timeline

Manuel Castilla (manzanilla) requested review of this revision.Jun 2 2020, 10:40 AM
Manuel Castilla (manzanilla) created this revision.

Just tested and this looks fine to me. I'm not very familiar with the base visibility flags so I'd like someone else to take a quick look too.

This revision is now accepted and ready to land.Nov 2 2020, 4:57 PM

Hi Manuel, sorry this took so long to be reviewed and committed, that shouldn't have happened. Thanks for the patch!

Feel free to prompt someone here or on blender.chat if a fix like this is forgotten.