FIx T56758: Outliner - Select Hierarchy not working.

Reversed logical check on object's visibility...
This commit is contained in:
Bastien Montagne 2018-09-12 15:02:45 +02:00
parent bf709f9d36
commit 0d0e8979ab
Notes: blender-bot 2023-02-14 08:10:10 +01:00
Referenced by issue #56758, Outliner - Select Hierarchy not working
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ static void do_outliner_object_select_recursive(ViewLayer *view_layer, Object *o
for (base = FIRSTBASE(view_layer); base; base = base->next) {
Object *ob = base->object;
if ((((base->flag & BASE_VISIBLE) == 0) && BKE_object_is_child_recursive(ob_parent, ob))) {
if ((((base->flag & BASE_VISIBLE) != 0) && BKE_object_is_child_recursive(ob_parent, ob))) {
ED_object_base_select(base, select ? BA_SELECT : BA_DESELECT);
}
}