Commit: ac80ceae7707918eb410dcef6df199adf1615ca7
Author: Campbell Barton
Date: Tue Dec 18 13:49:09 2018 +1100
Branches: blender2.8
https://developer.blender.org/rBac80ceae7707918eb410dcef6df199adf1615ca7
Correct missing NULL check in recent commit
===================================================================
M source/blender/editors/space_view3d/view3d_gizmo_empty.c
===================================================================
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) {
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs