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.
This commit is contained in:
parent
e4370eccdf
commit
97be726f93
Notes:
blender-bot
2023-04-04 07:45:26 +02:00
Referenced by issue #74796, Outliner - Children objects aren't drawn when colections are hidden
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue