Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-07-16 18:36:46 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-07-16 18:46:42 +0300
commit91f539b384168aefa096fce3aecf555e2f47efc7 (patch)
tree549cf10cdb2e528300ade6e224069cf0faee2002 /source/blender/modifiers/intern/MOD_mirror.c
parent28c684f66b439dd7e36349e3c751318fd97897e3 (diff)
Fix T66862: crash with mirror modifier applied to curve object
Diffstat (limited to 'source/blender/modifiers/intern/MOD_mirror.c')
-rw-r--r--source/blender/modifiers/intern/MOD_mirror.c2
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;