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:
authorJacques Guignot <guignot@wanadoo.fr>2003-11-23 02:30:40 +0300
committerJacques Guignot <guignot@wanadoo.fr>2003-11-23 02:30:40 +0300
commit86a236b029f9c0c520f25893a98c52e95b0e160d (patch)
tree5ef326fd1224803d79c1031688f7976893510ef3 /source/blender/python/api2_2x/Curve.h
parentfbc58ed007c185af31eac9061cfb4ce88629695a (diff)
several warning fixes, for a bug-free *and* warnings-free 2.31 !
Just moved some declarations, nothing important.
Diffstat (limited to 'source/blender/python/api2_2x/Curve.h')
-rw-r--r--source/blender/python/api2_2x/Curve.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Curve.h b/source/blender/python/api2_2x/Curve.h
index 1683d5d21d2..a89d0b7c94f 100644
--- a/source/blender/python/api2_2x/Curve.h
+++ b/source/blender/python/api2_2x/Curve.h
@@ -107,6 +107,10 @@ static PyObject *Curve_getRot(BPy_Curve *self);
static PyObject *Curve_setRot(BPy_Curve *self, PyObject *args);
static PyObject *Curve_getSize(BPy_Curve *self);
static PyObject *Curve_setSize(BPy_Curve *self, PyObject *args);
+static PyObject *Curve_getNumCurves(BPy_Curve *self);
+static PyObject *Curve_isNurb( BPy_Curve *self, PyObject *args );
+static PyObject *Curve_getNumPoints(BPy_Curve *self, PyObject *args);
+static PyObject *Curve_getNumPoints(BPy_Curve *self, PyObject *args);
/*****************************************************************************/
/* Python BPy_Curve methods table: */
@@ -171,6 +175,12 @@ Sets a control point "},
METH_NOARGS,"() - Gets curve size"},
{"setSize", (PyCFunction)Curve_setSize,
METH_VARARGS,"(3-tuple) - Sets curve size"},
+ {"getNumCurves", (PyCFunction)Curve_getNumCurves,
+ METH_NOARGS,"() - Gets # of curves"},
+ {"isNurb", (PyCFunction)Curve_isNurb,
+ METH_VARARGS,"(nothing or integer) - returns 1 or 0, depending upon the curve being a Nurb"},
+ {"getNumPoints", (PyCFunction)Curve_getNumPoints,
+ METH_VARARGS,"(nothing or integer) - returns the number of points of the specified curve"},
{0}
};