Outliner: Don't show id operations (make single user) when not supported
authorDalai Felinto <dfelinto@gmail.com>
Tue, 19 Nov 2019 17:15:41 +0000 (14:15 -0300)
committerDalai Felinto <dfelinto@gmail.com>
Tue, 19 Nov 2019 17:28:59 +0000 (14:28 -0300)
commit9ca2cbdcea6a8e46a07348ae35cdecfb0637eb9f
tree7103bba5abfb76929c86959331bab66444fce6cf
parent83e87655627fc2156a87dbfe2f676869b97fa8d2
Outliner: Don't show id operations (make single user) when not supported

For the make single user operation to work we expect a parent of the
datablock to be around. However this is often not the case when not
accessing the data from Scenes or Viewlayer display modes.

For now we simply not show them in the other cases. They can be added
later though, by testing the outliner tree parent compatibility with the
expected parent id.

Fix T71673
Differential Revision: https://developer.blender.org/D6276
source/blender/editors/space_outliner/outliner_tools.c