From 3b16578fb4996a8a34a169c558d1cd36e417a0bb Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Wed, 20 Nov 2019 00:42:28 -0300 Subject: 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. --- source/blender/editors/space_outliner/outliner_tools.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') 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 -- cgit v1.2.3