diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2019-11-20 06:29:28 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2019-11-20 06:29:28 +0300 |
commit | bc66810064f369c37d9afeb948df7f616893490a (patch) | |
tree | 52cb5a6b69214ca9403160248a65fdb071158c95 /source/blender/editors/space_outliner | |
parent | 9ca2cbdcea6a8e46a07348ae35cdecfb0637eb9f (diff) |
Outliner: Fix crash for tooltips on ID operations
This was introduced on 9ca2cbdcea6a.
Diffstat (limited to 'source/blender/editors/space_outliner')
-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 d6509986249..339ce4e2573 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 (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 |