[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [13861] trunk/blender/source/blender/ python/api2_2x/NMesh.c:
Brecht Van Lommel
brechtvanlommel at pandora.be
Mon Feb 25 12:55:52 CET 2008
Revision: 13861
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=13861
Author: blendix
Date: 2008-02-25 12:55:51 +0100 (Mon, 25 Feb 2008)
Log Message:
-----------
Fix for bug #8081: python script crash writing MFace.uv.
Modified Paths:
--------------
trunk/blender/source/blender/python/api2_2x/NMesh.c
Modified: trunk/blender/source/blender/python/api2_2x/NMesh.c
===================================================================
--- trunk/blender/source/blender/python/api2_2x/NMesh.c 2008-02-25 10:58:12 UTC (rev 13860)
+++ trunk/blender/source/blender/python/api2_2x/NMesh.c 2008-02-25 11:55:51 UTC (rev 13861)
@@ -1,5 +1,5 @@
/*
- * $Id: NMesh.c 12108 2007-09-22 17:54:13Z campbellbarton $
+ * $Id$
*
* ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
*
@@ -2543,7 +2543,7 @@
/* fuv = [(u_1, v_1), ... (u_n, v_n)] */
for( i = 0; i < len; i++ ) {
- tmp = PyList_GetItem( fuv, i ); /* stolen reference ! */
+ tmp = PySequence_GetItem( fuv, i ); /* stolen reference ! */
if( !PyArg_ParseTuple
( tmp, "ff", &( tf->uv[i][0] ), &( tf->uv[i][1] ) ) ) {
PyErr_SetString ( PyExc_TypeError,
More information about the Bf-blender-cvs
mailing list