forked from bartvdbraak/blender
Fix for issue in mask overlap with no splines in the mask.
This commit is contained in:
parent
f9b51f0635
commit
05235d86ef
@ -410,7 +410,13 @@ bool BLI_scanfill_calc_self_isect(
|
|||||||
int totvert_new = 0;
|
int totvert_new = 0;
|
||||||
bool changed = false;
|
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 */
|
/* get the polygon span */
|
||||||
if (sf_ctx->poly_nr == 0) {
|
if (sf_ctx->poly_nr == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user