[Bf-blender-cvs] [91f539b3841] master: Fix T66862: crash with mirror modifier applied to curve object
Brecht Van Lommel
noreply at git.blender.org
Tue Jul 16 17:50:17 CEST 2019
Commit: 91f539b384168aefa096fce3aecf555e2f47efc7
Author: Brecht Van Lommel
Date: Tue Jul 16 17:36:46 2019 +0200
Branches: master
https://developer.blender.org/rB91f539b384168aefa096fce3aecf555e2f47efc7
Fix T66862: crash with mirror modifier applied to curve object
===================================================================
M source/blender/modifiers/intern/MOD_mirror.c
===================================================================
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;
More information about the Bf-blender-cvs
mailing list