Fix T79207: Crash converting curve to mesh
This commit is contained in:
@@ -286,12 +286,14 @@ int BKE_mesh_nurbs_displist_to_mdata(Object *ob,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (dl->type == DL_SURF) {
|
else if (dl->type == DL_SURF) {
|
||||||
int tot;
|
if (dl->parts != 0) {
|
||||||
totvert += dl->parts * dl->nr;
|
int tot;
|
||||||
tot = (dl->parts - 1 + ((dl->flag & DL_CYCL_V) == 2)) *
|
totvert += dl->parts * dl->nr;
|
||||||
(dl->nr - 1 + (dl->flag & DL_CYCL_U));
|
tot = (((dl->flag & DL_CYCL_U) ? 1 : 0) + (dl->nr - 1)) *
|
||||||
totpoly += tot;
|
(((dl->flag & DL_CYCL_V) ? 1 : 0) + (dl->parts - 1));
|
||||||
totloop += tot * 4;
|
totpoly += tot;
|
||||||
|
totloop += tot * 4;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (dl->type == DL_INDEX3) {
|
else if (dl->type == DL_INDEX3) {
|
||||||
int tot;
|
int tot;
|
||||||
|
|||||||
Reference in New Issue
Block a user