diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2019-11-20 06:42:28 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2019-11-20 06:42:30 +0300 |
commit | 3b16578fb4996a8a34a169c558d1cd36e417a0bb (patch) | |
tree | 4ff18fe0253454066ff9b303eccad4f5c6c3ea26 /source | |
parent | bc66810064f369c37d9afeb948df7f616893490a (diff) |
Outliner: Fixup for previous commit on tooltip/crash fix
The issue was actually in Python extras (where it shows the ENUM option).
I got a bit distracted by the "(undocumented operator)" message.
It made me miss the missing ENUM once the crash was gone.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_tools.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/outliner_tools.c b/source/blender/editors/space_outliner/outliner_tools.c index 339ce4e2573..4664d3c08ff 100644 --- a/source/blender/editors/space_outliner/outliner_tools.c +++ b/source/blender/editors/space_outliner/outliner_tools.c @@ -1539,7 +1539,7 @@ static bool outliner_id_operation_item_poll(bContext *C, case OUTLINER_IDOP_OVERRIDE_LIBRARY: return BKE_override_library_is_enabled(); case OUTLINER_IDOP_SINGLE: - if (soops && ELEM(soops->outlinevis, SO_SCENES, SO_VIEW_LAYER)) { + if (!soops || ELEM(soops->outlinevis, SO_SCENES, SO_VIEW_LAYER)) { return true; } /* TODO (dalai): enable in the few cases where this can be supported |