Page MenuHome

Bug? Outliner: Can`t properly select single datablock
Closed, ArchivedPublic

Description

System Information
Operating system: Windows-8.1-6.3.9600-SP0 64 Bits
Graphics card: GeForce GTX 660 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 375.70

Blender Version
Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-07-25 22:03, hash: rBa77d20393217
Worked: (newest version of Blender that worked as expected)

Short description of error
It looks like In Outliner (View Layer) there is no proper way to select object`s data without object. Or may be something conflicts with such selection.
I am not sure it is a bug. Selection possible but looks very unobvious.

Event Timeline

As I know it's intended behavior for View Layer.
If you need single mesh data go to Blender File

HI @Vyacheslav (hitrpr) , Guess the behavior is expected.

From code it first sets the flag TSE_SELECTED for parent (to activate in outliner)

if (parent_tselem) {
        parent_tselem->flag |= TSE_SELECTED;
      }

then it checks for child data block to activate with the help of function tree_element_activate(C, tvc, te, OL_SETSEL_NORMAL, false);

May be I misunderstood the code so, will keep the report open for others to triage. [ For me this is expected behavior :) ]

if (parent_tselem) {
        parent_tselem->flag |= TSE_SELECTED;
      }

Removing this check makes the selection of individual data-block possible (for me at least)
But I am not sure about the reason to select parent along with the data-block so wait for the developers to answer :)

Philipp Oeser (lichtwerk) closed this task as Archived.Jul 30 2021, 1:07 PM

You can use LMB on the empty space in the row (as opposed to the icon or name) to highlight/preselect only that data and skip selecting the corresponding object.
Or RMB on empty space, icon or name [which then spawns to context menu as well].

I agree it still feels poor, and afaics this is also not documented in https://docs.blender.org/manual/en/dev/editors/outliner/selecting.html or https://docs.blender.org/manual/en/dev/editors/outliner/editing.html#context-menu
But maybe it is not so bad since operating on datablocks like Materials dont work with shortcuts anyways? (you can only really operate on them via the context menu, right?

For some historical context, is has seen many iterations (e.g. this has been talked about in T37430: Review Preselection in Outliner and partially implemented in rB9a9a663f40d5: Outliner: Rework element selection behavior).

I do think this is working as intended atm., so will close as not-a-bug.

P.S.: what I cannot reproduce is the "glitch" that using LMB on the Material after using LMB on the object will only solo-select the Material

P.S.: what I cannot reproduce is the "glitch" that using LMB...

@Philipp Oeser (lichtwerk) , use Ctrl+LMB

@Philipp Oeser (lichtwerk) for me LMB on the empty space do the same: selecting material and keeps object`s selection.
RMB works ofc, but it spawns menu.

since operating on datablocks like Materials dont work with shortcuts anyways?

But they work. After selection with RMB I can delete it with shortcut or unlink.

@Pratik Borhade (PratikPB2123), @Philipp Oeser (lichtwerk) anyway thanks for explanation and participation. Looks like it needs to be discussed with developers.
ATM I will use context menu + letter-shorcut (D )

@Philipp Oeser (lichtwerk) for me LMB on the empty space do the same: selecting material and keeps object`s selection.
RMB works ofc, but it spawns menu.

Ah, this is only working like I said when Sync Selection in the Outliner Filter popover is turned OFF