Cleanup: 'false' use as NULL pointer

This commit is contained in:
Campbell Barton 2020-11-18 13:19:53 +11:00
parent eb2c26bd38
commit d13edeaed4
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ static Object *object_volume_add(bContext *C, wmOperator *op, const char *name)
float loc[3], rot[3];
if (!ED_object_add_generic_get_opts(C, op, 'Z', loc, rot, NULL, NULL, &local_view_bits, NULL)) {
return false;
return NULL;
}
return ED_object_add_type(C, OB_VOLUME, name, loc, rot, false, local_view_bits);
}

View File

@ -468,7 +468,7 @@ static ID *view3d_drop_id_in_main_region_poll_id(bContext *C,
{
ScrArea *area = CTX_wm_area(C);
if (ED_region_overlap_isect_any_xy(area, &event->x)) {
return false;
return NULL;
}
return WM_drag_ID(drag, id_type);
}