Correct missing NULL check in recent commit

This commit is contained in:
2018-12-18 13:49:09 +11:00
parent 7e9f76944c
commit ac80ceae77

View File

@@ -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) {