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
Notes: blender-bot 2023-04-19 22:54:54 +02:00
Referenced by issue #66862, Mirror Modifiers + Curve crash
1 changed files with 1 additions and 1 deletions

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;