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-07-04 20:09:34 +0400
committerJacques Guignot <guignot@wanadoo.fr>2003-07-04 20:09:34 +0400
commit19ac604c47373040b19418c1d70a2fc5bd224f07 (patch)
tree48cf7480887544a1ec198b3b9839e29d98dc1104 /source/blender/python/api2_2x/Curve.c
parent82e1783dcb9397de1b83dff1186fccc15707531f (diff)
deleted print function, which caused crashes.
Objects are printed with the repr function.
Diffstat (limited to 'source/blender/python/api2_2x/Curve.c')
-rw-r--r--source/blender/python/api2_2x/Curve.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Curve.c b/source/blender/python/api2_2x/Curve.c
index 9f1b37a648b..38ae90746fe 100644
--- a/source/blender/python/api2_2x/Curve.c
+++ b/source/blender/python/api2_2x/Curve.c
@@ -651,6 +651,7 @@ static int CurveSetAttr (BPy_Curve *self, char *name, PyObject *value)
/* Description: This is a callback function for the BPy_Curve type. It */
/* builds a meaninful string to 'print' curve objects. */
/*****************************************************************************/
+/*
static int CurvePrint(BPy_Curve *self, FILE *fp, int flags) //print
{
@@ -658,6 +659,7 @@ static int CurvePrint(BPy_Curve *self, FILE *fp, int flags) //print
return 0;
}
+*/
/*****************************************************************************/
/* Function: CurveRepr */
@@ -667,7 +669,7 @@ static int CurvePrint(BPy_Curve *self, FILE *fp, int flags) //print
static PyObject *CurveRepr (BPy_Curve *self) //used by 'repr'
{
- return PyString_FromString(self->curve->id.name+2);
+ return PyString_FromFormat("[Curve \"%s\"]", self->curve->id.name+2);
}
PyObject* CurveCreatePyObject (struct Curve *curve)