diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-12-18 05:49:09 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-12-18 05:49:09 +0300 |
commit | ac80ceae7707918eb410dcef6df199adf1615ca7 (patch) | |
tree | c114ca54426c7cb9683f62ae6dbbe8e8def85dd5 | |
parent | 7e9f76944c3117f99045f9cde6253e2592953330 (diff) |
Correct missing NULL check in recent commit
-rw-r--r-- | source/blender/editors/space_view3d/view3d_gizmo_empty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/view3d_gizmo_empty.c b/source/blender/editors/space_view3d/view3d_gizmo_empty.c index 695ffc1d7ef..e5dafad0757 100644 --- a/source/blender/editors/space_view3d/view3d_gizmo_empty.c +++ b/source/blender/editors/space_view3d/view3d_gizmo_empty.c @@ -120,7 +120,7 @@ static bool WIDGETGROUP_empty_image_poll(const bContext *C, wmGizmoGroupType *UN ViewLayer *view_layer = CTX_data_view_layer(C); Base *base = BASACT(view_layer); - if (BASE_VISIBLE(v3d, base)) { + if (base && BASE_VISIBLE(v3d, base)) { Object *ob = base->object; if (ob->type == OB_EMPTY) { if (ob->empty_drawtype == OB_EMPTY_IMAGE) { |