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:
authorCampbell Barton <ideasman42@gmail.com>2011-02-09 07:45:53 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-02-09 07:45:53 +0300
commit08841476983f490c4dbf16934bc05602bbd4d5c5 (patch)
treec38dee93dc2bfb6b05ba1cbb4a19916e271e8a5e /source/blender/modifiers
parentf6733d90e57fe8dce473f05b4bf0b4e6d4559ecd (diff)
fix [#25968] Crash on changing merge distance in array modifier with edgesplit modifier in chain
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r--source/blender/modifiers/intern/MOD_array.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/modifiers/intern/MOD_array.c b/source/blender/modifiers/intern/MOD_array.c
index 1fdfe6c192c..9b49066d623 100644
--- a/source/blender/modifiers/intern/MOD_array.c
+++ b/source/blender/modifiers/intern/MOD_array.c
@@ -546,12 +546,10 @@ static DerivedMesh *arrayModifier_doArray(ArrayModifierData *amd,
if (inMF.v4)
mf2->v4 = calc_mapping(indexMap, inMF.v4, j);
- test_index_face_maxvert(mf2, &result->faceData, numFaces, inMF.v4?4:3, numVerts);
numFaces++;
/* if the face has fewer than 3 vertices, don't create it */
- if(mf2->v3 == 0 || (mf2->v1 && (mf2->v1 == mf2->v3 || mf2->v1 ==
- mf2->v4))) {
+ if(test_index_face_maxvert(mf2, &result->faceData, numFaces-1, inMF.v4?4:3, numVerts) < 3) {
numFaces--;
DM_free_face_data(result, numFaces, 1);
}