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:
authorKen Hughes <khughes@pacific.edu>2005-10-11 18:35:43 +0400
committerKen Hughes <khughes@pacific.edu>2005-10-11 18:35:43 +0400
commita84a75cfc32ca81fc0eaa51f25098fd5b0255df9 (patch)
treebd17bf4c3e8a69a23caf332c046a808a91fb0199 /source/blender/python/api2_2x
parentbcbaffc8c251d5f139f4dfc424d0b853937a56fa (diff)
-Bugfix #3174: incorrectly counting number of face vertices
Diffstat (limited to 'source/blender/python/api2_2x')
-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;