Fix for issue in mask overlap with no splines in the mask.

This commit is contained in:
Campbell Barton 2014-02-17 18:54:24 +11:00
parent f9b51f0635
commit 05235d86ef

@ -410,7 +410,13 @@ bool BLI_scanfill_calc_self_isect(
int totvert_new = 0;
bool changed = false;
PolyInfo *poly_info = MEM_callocN(sizeof(*poly_info) * poly_tot, __func__);
PolyInfo *poly_info;
if (UNLIKELY(sf_ctx->poly_nr == SF_POLY_UNSET)) {
return false;
}
poly_info = MEM_callocN(sizeof(*poly_info) * poly_tot, __func__);
/* get the polygon span */
if (sf_ctx->poly_nr == 0) {