[Bf-blender-cvs] [4c83e6bac09] master: Fix T71611: Outliner - Show only Visible/Hidden Objects not working when hiding Collections

Philipp Oeser noreply at git.blender.org
Fri Feb 28 15:24:16 CET 2020


Commit: 4c83e6bac09fd9d7c973cbe056880d68f9944ae2
Author: Philipp Oeser
Date:   Thu Feb 27 18:32:56 2020 +0100
Branches: master
https://developer.blender.org/rB4c83e6bac09fd9d7c973cbe056880d68f9944ae2

Fix T71611: Outliner - Show only Visible/Hidden Objects not working when hiding Collections

Use BASE_VISIBLE_VIEWLAYER (rather than BASE_VISIBLE_DEPSGRAPH -- which
is not including the 'Hide in Viewport')

Note: the is one case where this still 'fails':
- 'Show only Hidden' plus excluding the parent collection (would be nice
to show those -- but contents of excluded excluded collections dont get
show in any case... this would be more work and for another report...)

Maniphest Tasks: T71611

Differential Revision: https://developer.blender.org/D6953

===================================================================

M	source/blender/editors/space_outliner/outliner_tree.c

===================================================================

diff --git a/source/blender/editors/space_outliner/outliner_tree.c b/source/blender/editors/space_outliner/outliner_tree.c
index 8142d86aac8..4f896424f08 100644
--- a/source/blender/editors/space_outliner/outliner_tree.c
+++ b/source/blender/editors/space_outliner/outliner_tree.c
@@ -2090,12 +2090,12 @@ static bool outliner_element_visible_get(ViewLayer *view_layer,
       }
 
       if (exclude_filter & SO_FILTER_OB_STATE_VISIBLE) {
-        if ((base->flag & BASE_VISIBLE_DEPSGRAPH) == 0) {
+        if ((base->flag & BASE_VISIBLE_VIEWLAYER) == 0) {
           return false;
         }
       }
       else if (exclude_filter & SO_FILTER_OB_STATE_HIDDEN) {
-        if ((base->flag & BASE_VISIBLE_DEPSGRAPH) != 0) {
+        if ((base->flag & BASE_VISIBLE_VIEWLAYER) != 0) {
           return false;
         }
       }



More information about the Bf-blender-cvs mailing list