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:
Diffstat (limited to 'source/blender/python')
-rw-r--r--source/blender/python/api2_2x/NMesh.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/NMesh.c b/source/blender/python/api2_2x/NMesh.c
index f6ed4fd5bbd..010cf2772f3 100644
--- a/source/blender/python/api2_2x/NMesh.c
+++ b/source/blender/python/api2_2x/NMesh.c
@@ -2618,6 +2618,7 @@ static void mface_from_data( MFace * mf, TFace * tf, MCol * col,
mf->v4 = nmv->index;
else
mf->v4 = 0;
+ i = 4; /* no more than 4 verts */
}
if( tf ) {
@@ -2628,7 +2629,7 @@ static void mface_from_data( MFace * mf, TFace * tf, MCol * col,
}
}
- test_index_face(mf, NULL, tf, mf->v4?4:3);
+ test_index_face(mf, NULL, tf, i );
mf->mat_nr = from->mat_nr;
mf->flag = from->mf_flag;