diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-08-19 15:09:10 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-08-19 15:11:57 +0400 |
commit | 5e6b79c1f52c5408a64a5e93ee09dd17a1ac5e7c (patch) | |
tree | 0d7323308f0dadfb789b9b5a8528eea919e4c41f /source/blender | |
parent | 8d3cc431d7fdcc9f3243cc24dfdcb94124be0993 (diff) |
Fix crash in BKE_mesh_validate_arrays
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/mesh_validate.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/mesh_validate.c b/source/blender/blenkernel/intern/mesh_validate.c index c3335bf69db..f3a9e894eb3 100644 --- a/source/blender/blenkernel/intern/mesh_validate.c +++ b/source/blender/blenkernel/intern/mesh_validate.c @@ -502,8 +502,9 @@ bool BKE_mesh_validate_arrays(Mesh *mesh, PRINT_ERR("\tLoop %u has invalid vert reference (%u)\n", sp->loopstart + j, ml->v); sp->invalid = true; } - - mverts[ml->v].flag |= ME_VERT_TMP_TAG; + else { + mverts[ml->v].flag |= ME_VERT_TMP_TAG; + } *v = ml->v; } |