deleted print function, which caused crashes.

Objects are printed with the repr function.
This commit is contained in:
2003-07-04 16:09:34 +00:00
parent 82e1783dcb
commit 19ac604c47
2 changed files with 5 additions and 3 deletions

View File

@@ -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)