diff options
author | Ken Hughes <khughes@pacific.edu> | 2005-10-11 18:35:43 +0400 |
---|---|---|
committer | Ken Hughes <khughes@pacific.edu> | 2005-10-11 18:35:43 +0400 |
commit | a84a75cfc32ca81fc0eaa51f25098fd5b0255df9 (patch) | |
tree | bd17bf4c3e8a69a23caf332c046a808a91fb0199 | |
parent | bcbaffc8c251d5f139f4dfc424d0b853937a56fa (diff) |
-Bugfix #3174: incorrectly counting number of face vertices
-rw-r--r-- | source/blender/python/api2_2x/NMesh.c | 3 |
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; |