Fix T66862: crash with mirror modifier applied to curve object
This commit is contained in:
parent
28c684f66b
commit
91f539b384
Notes:
blender-bot
2023-04-19 22:54:54 +02:00
Referenced by issue #66862, Mirror Modifiers + Curve crash
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue