Page MenuHome

Outliner 'select hierarchy' doesn't work has expected
Closed, ResolvedPublic


Select Hierarchy has some troubles:

-It use swap / toggle selection who lead some annoy like click twice on 'select hierarchy' to get the expected result. Even if the expected thing is to have a swap it's doesn't work cause ops do the swap only on the clicked outliner item.

-This bug came with 2.78. The first 'Select hierarchy' does nothing, even not a swap.

For the first point I propose to remove swap and replace by a simple select. If there is an interest to have swap it could be an other ops.

And for the bug if someone have an idea, otherwise I'm on it.

Related Objects

Event Timeline

colin (col-one) claimed this task.
ronan ducluzeau (zeauro) triaged this task as Confirmed, Medium priority.

I confirm that Select Hierarchy have an erratic behaviour in 2.79 and master 40c8a18.
Sometimes, it selects hieararchy of active object.
Sometimes, it highlights items of hierarchy in outliner.
Sometimes it collapses hierarchy.

@Philipp Oeser (lichtwerk) , What was the purpose of this operator ?

colin (col-one) added a comment.EditedNov 19 2017, 5:14 PM

I take a look to the source code. Here my conclusion,
The problem with 'select hierarchy' is that it uses last click position to define the parent item, therefore it can happen the last click is the menu ops 'select hierarchy' itself at a different click position. It works when blender reminds the last ops menu and puts it under the cursor, in this case the first click and the second click have nearly same positions.
Here a gif to illustrate the problem.

I think it's possible to do a patch to fix this, but an outliner redesign would be a good idea, I think It's getting hard to maintain.