[Bf-blender-cvs] [bc66810064f] master: Outliner: Fix crash for tooltips on ID operations

Dalai Felinto noreply at git.blender.org
Wed Nov 20 04:31:02 CET 2019


Commit: bc66810064f369c37d9afeb948df7f616893490a
Author: Dalai Felinto
Date:   Wed Nov 20 00:29:28 2019 -0300
Branches: master
https://developer.blender.org/rBbc66810064f369c37d9afeb948df7f616893490a

Outliner: Fix crash for tooltips on ID operations

This was introduced on 9ca2cbdcea6a.

===================================================================

M	source/blender/editors/space_outliner/outliner_tools.c

===================================================================

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



More information about the Bf-blender-cvs mailing list