diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-07-16 18:36:46 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-07-16 18:46:42 +0300 |
commit | 91f539b384168aefa096fce3aecf555e2f47efc7 (patch) | |
tree | 549cf10cdb2e528300ade6e224069cf0faee2002 /source/blender/modifiers/intern | |
parent | 28c684f66b439dd7e36349e3c751318fd97897e3 (diff) |
Fix T66862: crash with mirror modifier applied to curve object
Diffstat (limited to 'source/blender/modifiers/intern')
-rw-r--r-- | source/blender/modifiers/intern/MOD_mirror.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_mirror.c b/source/blender/modifiers/intern/MOD_mirror.c index 857c69eab50..11f001d7a85 100644 --- a/source/blender/modifiers/intern/MOD_mirror.c +++ b/source/blender/modifiers/intern/MOD_mirror.c @@ -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; |