From 97be726f9319f9b5a3b076a62309549d73ea6aed Mon Sep 17 00:00:00 2001 From: Nathan Craddock Date: Tue, 4 Aug 2020 11:45:35 -0600 Subject: [PATCH] Fix T74796: Outliner child objects hidden when collections are filtered Filtering Collections when also filtering object children would only display the parent object. Add a check for the NO_CHILDREN filter before creating the object-parent hierarchy. --- source/blender/editors/space_outliner/outliner_tree.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/blender/editors/space_outliner/outliner_tree.c b/source/blender/editors/space_outliner/outliner_tree.c index db42fb8f319..e1d92c551c3 100644 --- a/source/blender/editors/space_outliner/outliner_tree.c +++ b/source/blender/editors/space_outliner/outliner_tree.c @@ -2461,7 +2461,9 @@ void outliner_build_tree( te_object->directdata = base; } - outliner_make_object_parent_hierarchy(&soops->tree); + if ((soops->filter & SO_FILTER_NO_CHILDREN) == 0) { + outliner_make_object_parent_hierarchy(&soops->tree); + } } else { /* Show collections in the view layer. */