Fix T66862: crash with mirror modifier applied to curve object

This commit is contained in:
Brecht Van Lommel
2019-07-16 17:36:46 +02:00
parent 28c684f66b
commit 91f539b384

View File

@@ -335,7 +335,7 @@ static Mesh *doMirrorOnAxis(MirrorModifierData *mmd,
}
/* handle custom split normals */
if ((((Mesh *)ob->data)->flag & ME_AUTOSMOOTH) &&
if (ob->type == OB_MESH && (((Mesh *)ob->data)->flag & ME_AUTOSMOOTH) &&
CustomData_has_layer(&result->ldata, CD_CUSTOMLOOPNORMAL)) {
const int totloop = result->totloop;
const int totpoly = result->totpoly;