fix for bug converting text/surface/curve displists to mesh only getting the first face, also wasnt copying smooth flag.

This commit is contained in:
2011-08-17 05:42:23 +00:00
parent 7b50578acd
commit 21bb71eaa9

View File

@@ -1382,10 +1382,11 @@ int nurbs_to_mdata_customdb(Object *ob, ListBase *dispbase, MVert **allvert, int
if (mface >= *allface + totvlak)
break;
mpoly->flag |= mface->flag & ME_SMOOTH;
mpoly->loopstart= j;
mpoly->totloop= mface->v4 ? 4 : 3;
for (k=0; k<mpoly->totloop; k++, mloop++) {
for (k=0; k<mpoly->totloop; k++, mloop++, j++) {
mloop->v = (&mface->v1)[k];
}
}