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>2013-02-28 08:18:01 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-02-28 08:18:01 +0400
commit1810913f81dde315d1aba207c4d88ab1c8186194 (patch)
treecc983672bec7ad3f5e1eeb79fef3844ca8a6f9b4 /source/blender/editors/mesh/editface.c
parentd17c13d145fa68faf41f1c6e93cdbce914feef37 (diff)
fix for bmesh regression similar to last revision r54920. only effected loading old blend files without edge data.
Diffstat (limited to 'source/blender/editors/mesh/editface.c')
-rw-r--r--source/blender/editors/mesh/editface.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/editors/mesh/editface.c b/source/blender/editors/mesh/editface.c
index a8b97d4c51f..7ddf2b54a88 100644
--- a/source/blender/editors/mesh/editface.c
+++ b/source/blender/editors/mesh/editface.c
@@ -181,12 +181,11 @@ void paintface_reveal(Object *ob)
static void hash_add_face(EdgeHash *ehash, MPoly *mp, MLoop *mloop)
{
- MLoop *ml;
- MLoop *ml_next;
+ MLoop *ml, *ml_next;
int i = mp->totloop;
- ml_next = mloop;
- ml = &mloop[mp->totloop - 1];
+ ml_next = mloop; /* first loop */
+ ml = &ml_next[i - 1]; /* last loop */
while (i-- != 0) {
BLI_edgehash_insert(ehash, ml->v, ml_next->v, NULL);