From 46329e5ab08d451118f9a19507832360070f018b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 6 Jun 2006 17:04:00 +0000 Subject: [PATCH] made it so a meshes uvsel could be set with any sequence, not just a tuple. --- source/blender/python/api2_2x/Mesh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blender/python/api2_2x/Mesh.c b/source/blender/python/api2_2x/Mesh.c index 35ef8cdb10a..b017723a37b 100644 --- a/source/blender/python/api2_2x/Mesh.c +++ b/source/blender/python/api2_2x/Mesh.c @@ -4119,7 +4119,7 @@ static int MFace_setUVSel( BPy_MFace * self, PyObject * value ) "expected a tuple of integers" ); length = self->mesh->mface[self->index].v4 ? 4 : 3; - if( length != PyTuple_Size( value ) ) + if( length != PySequence_Size( value ) ) return EXPP_ReturnIntError( PyExc_TypeError, "size of vertex and UV lists differ" ); @@ -4135,7 +4135,7 @@ static int MFace_setUVSel( BPy_MFace * self, PyObject * value ) face = &self->mesh->tface[self->index]; mask = TF_SEL1; for( i=0; i