diff options
author | Ken Hughes <khughes@pacific.edu> | 2007-07-13 18:38:44 +0400 |
---|---|---|
committer | Ken Hughes <khughes@pacific.edu> | 2007-07-13 18:38:44 +0400 |
commit | 0f692d999a3529b73d6b153f6beaf9b570396d36 (patch) | |
tree | f81c7a855f11df373f0d2aa8620cadbed5e7cccf /source/blender/python/api2_2x/Curve.c | |
parent | 4f240c79822722e2a857c6c80e6b527b4547534b (diff) |
Python API
----------
Remove unused variable declaration which caused gcc warnings.
Diffstat (limited to 'source/blender/python/api2_2x/Curve.c')
-rw-r--r-- | source/blender/python/api2_2x/Curve.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/python/api2_2x/Curve.c b/source/blender/python/api2_2x/Curve.c index eeaeebbbae8..8f1f43722ae 100644 --- a/source/blender/python/api2_2x/Curve.c +++ b/source/blender/python/api2_2x/Curve.c @@ -1,5 +1,6 @@ /* * $Id$ + * * ***** BEGIN GPL/BL DUAL LICENSE BLOCK ***** * * This program is free software; you can redistribute it and/or @@ -768,7 +769,6 @@ static PyObject *Curve_appendPoint( BPy_Curve * self, PyObject * args ) int nurb_num; /* index of curve we append to */ PyObject *coord_args; /* coords for new point */ PyObject *retval = NULL; - PyObject *valtuple; Nurb *nurb = self->curve->nurb.first; /* first nurb in Curve */ /* fixme - need to malloc new Nurb */ @@ -792,10 +792,10 @@ static PyObject *Curve_appendPoint( BPy_Curve * self, PyObject * args ) } /* rebuild our arg tuple for appendPointToNurb() */ - valtuple = Py_BuildValue( "(O)", coord_args ); + //valtuple = Py_BuildValue( "(O)", coord_args ); - retval = CurNurb_appendPointToNurb( nurb, valtuple ); - Py_DECREF( valtuple ); + retval = CurNurb_appendPointToNurb( nurb, coord_args ); + // Py_DECREF( valtuple ); return retval; } |