corrected M3D_EXP_NOFACE test

pull/3848/head
contriteobserver 2021-04-30 21:51:02 -07:00
parent bf653b4bd6
commit 813b64ef52
1 changed files with 1 additions and 1 deletions

View File

@ -5042,7 +5042,7 @@ unsigned char *m3d_save(m3d_t *model, int quality, int flags, unsigned int *size
ptr += sprintf(ptr, "\r\n"); ptr += sprintf(ptr, "\r\n");
} }
/* mathematical shapes face */ /* mathematical shapes face */
if (model->numshape != (M3D_INDEX)(flags & M3D_EXP_NOFACE)) { if (model->numshape && (!(flags & M3D_EXP_NOFACE))) {
for (j = 0; j < model->numshape; j++) { for (j = 0; j < model->numshape; j++) {
sn = _m3d_safestr(model->shape[j].name, 0); sn = _m3d_safestr(model->shape[j].name, 0);
if (!sn) { if (!sn) {