[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11326] trunk/blender/source/blender/ python/api2_2x/Curve.c: fix for Curve appendNurb

Campbell Barton cbarton at metavr.com
Sat Jul 21 05:54:22 CEST 2007


Revision: 11326
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11326
Author:   campbellbarton
Date:     2007-07-21 05:54:20 +0200 (Sat, 21 Jul 2007)

Log Message:
-----------
fix for Curve appendNurb

Modified Paths:
--------------
    trunk/blender/source/blender/python/api2_2x/Curve.c

Modified: trunk/blender/source/blender/python/api2_2x/Curve.c
===================================================================
--- trunk/blender/source/blender/python/api2_2x/Curve.c	2007-07-20 21:01:31 UTC (rev 11325)
+++ trunk/blender/source/blender/python/api2_2x/Curve.c	2007-07-21 03:54:20 UTC (rev 11326)
@@ -807,7 +807,7 @@
   returns a refernce to the newly created nurb.
 *****/
 
-static PyObject *Curve_appendNurb( BPy_Curve * self, PyObject * args )
+static PyObject *Curve_appendNurb( BPy_Curve * self, PyObject * value )
 {
 	Nurb *nurb_ptr = self->curve->nurb.first;
 	Nurb **pptr = ( Nurb ** ) & ( self->curve->nurb.first );
@@ -828,7 +828,7 @@
 		return EXPP_ReturnPyObjError
 			( PyExc_MemoryError, "unable to malloc Nurb" );
 
-	if( CurNurb_appendPointToNurb( new_nurb, args ) ) {
+	if( CurNurb_appendPointToNurb( new_nurb, value ) ) {
 		*pptr = new_nurb;
 		new_nurb->resolu = self->curve->resolu;
 		new_nurb->resolv = self->curve->resolv;
@@ -1415,7 +1415,7 @@
 	 "(nothing or integer) - returns the number of points of the specified curve"},
 	{"appendPoint", ( PyCFunction ) Curve_appendPoint, METH_VARARGS,
 	 "( int numcurve, list of coordinates) - adds a new point to end of curve"},
-	{"appendNurb", ( PyCFunction ) Curve_appendNurb, METH_VARARGS,
+	{"appendNurb", ( PyCFunction ) Curve_appendNurb, METH_O,
 	 "( new_nurb ) - adds a new nurb to the Curve"},
 	{"update", ( PyCFunction ) Curve_update, METH_NOARGS,
 	 "( ) - updates display lists after changes to Curve"},





More information about the Bf-blender-cvs mailing list