Fix T84327: outliner_id_copy_tag was only copying from expanded nodes.

If a node was closed in the hierarchy, we would only copy that node,
even if child nodes were selected.

Reviewed By: brecht, mont29

Maniphest Tasks: T84327

Differential Revision: https://developer.blender.org/D9995
This commit is contained in:
Pi Lanningham
2021-01-11 12:00:58 +01:00
committed by Bastien Montagne
parent 6e7716f32e
commit f0ae0f490e

View File

@@ -772,9 +772,7 @@ static int outliner_id_copy_tag(SpaceOutliner *space_outliner, ListBase *tree)
}
/* go over sub-tree */
if (TSELEM_OPEN(tselem, space_outliner)) {
num_ids += outliner_id_copy_tag(space_outliner, &te->subtree);
}
num_ids += outliner_id_copy_tag(space_outliner, &te->subtree);
}
return num_ids;