Outliner Visibility Update
authorDalai Felinto <dfelinto@gmail.com>
Sat, 4 May 2019 17:14:37 +0000 (14:14 -0300)
committerDalai Felinto <dfelinto@gmail.com>
Fri, 10 May 2019 22:48:33 +0000 (19:48 -0300)
commitb1af682001596fb2943dca3e39a256be71637906
tree59fa8a74e10fccd3de6799f98ea9cb861d4accb8
parentde9d846353bdc48a2d3388e79309342df7d003df
Outliner Visibility Update

See T61578 for discussions and mockups.

Visibility Options
==================
We are adding more granular control over restriction columns in the outliner,
exposing "indirect only" and "holdout" as options, and change the way
users enable/disable collections in a viewlayer.

We also rename the object viewport restriction to hide instance.

So the options we have are:

Collection
----------
* Render Visibility
* Instance Visibility
* Selectable

(View) Layer Collection
-----------------------
* Enable
* Holdout
* Indirect Only
* Viewport

Shortcuts
=========
Isolate Collection
------------------
* Ctr + click isolates the collection.
It turns all its parents and children "visible", and all the other
collections "invisible".

If ALL the collections were already properly set, we re-set the
collections to their default value.

Set Collection Inside Collections and Objects
---------------------------------------------
* Shift + click: Set/unset inside collections and objects.

We only set objects values as well when we are in View Layer mode and
(obviously) when the objects have a matching property.

Icons
=====
Little reminder that we will need better icons for holdout, indirect only, and
probably instanced (nothing wrong with the current, but it differs from
the proposal when it is turned off).

Also, we need to decide where do we want the modifier/bones/... icons to
be (in which column) and ideally make sure their icons match the ones we
use for collections/objects.

At the moment those are using the screen icon, which is not being used
by collections.

Reviewers: brecht, billrey
Subscribers: pablovazquez
Differential Revision: https://developer.blender.org/D4823
33 files changed:
release/scripts/startup/bl_ui/space_outliner.py
source/blender/alembic/intern/abc_transform.cc
source/blender/blenkernel/BKE_blender_version.h
source/blender/blenkernel/BKE_collection.h
source/blender/blenkernel/intern/collection.c
source/blender/blenkernel/intern/layer.c
source/blender/blenkernel/intern/object_dupli.c
source/blender/blenloader/intern/versioning_280.c
source/blender/depsgraph/intern/builder/deg_builder_nodes.cc
source/blender/depsgraph/intern/builder/deg_builder_nodes_view_layer.cc
source/blender/depsgraph/intern/builder/deg_builder_relations_view_layer.cc
source/blender/editors/animation/anim_filter.c
source/blender/editors/include/UI_interface.h
source/blender/editors/interface/interface.c
source/blender/editors/mask/mask_ops.c
source/blender/editors/object/object_add.c
source/blender/editors/object/object_edit.c
source/blender/editors/screen/screen_ops.c
source/blender/editors/space_outliner/outliner_collections.c
source/blender/editors/space_outliner/outliner_draw.c
source/blender/editors/space_outliner/outliner_edit.c
source/blender/editors/space_outliner/outliner_intern.h
source/blender/editors/space_outliner/outliner_select.c
source/blender/editors/space_outliner/outliner_tree.c
source/blender/editors/space_outliner/outliner_utils.c
source/blender/editors/space_outliner/space_outliner.c
source/blender/makesdna/DNA_collection_types.h
source/blender/makesdna/DNA_object_types.h
source/blender/makesdna/DNA_space_types.h
source/blender/makesrna/intern/rna_collection.c
source/blender/makesrna/intern/rna_layer.c
source/blender/makesrna/intern/rna_object.c
source/blender/makesrna/intern/rna_space.c