Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Hughes <khughes@pacific.edu>2007-07-13 18:38:44 +0400
committerKen Hughes <khughes@pacific.edu>2007-07-13 18:38:44 +0400
commit0f692d999a3529b73d6b153f6beaf9b570396d36 (patch)
treef81c7a855f11df373f0d2aa8620cadbed5e7cccf /source/blender/python/api2_2x/Curve.c
parent4f240c79822722e2a857c6c80e6b527b4547534b (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.c8
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;
}