diff options
author | Jacques Guignot <guignot@wanadoo.fr> | 2003-07-04 20:06:39 +0400 |
---|---|---|
committer | Jacques Guignot <guignot@wanadoo.fr> | 2003-07-04 20:06:39 +0400 |
commit | 82e1783dcb9397de1b83dff1186fccc15707531f (patch) | |
tree | 159065c0dc14e2a688e498f765bce02317250c95 /source/blender/python/api2_2x/Ipo.c | |
parent | 28b8e667a0c2ef77dd862bc40909d089a96d1324 (diff) |
Following Willian's proposal,deleted the print function, which caused crashes.
The objects are now printed with the repr function.
Diffstat (limited to 'source/blender/python/api2_2x/Ipo.c')
-rw-r--r-- | source/blender/python/api2_2x/Ipo.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Ipo.c b/source/blender/python/api2_2x/Ipo.c index d082f10f05b..4b3f31dc227 100644 --- a/source/blender/python/api2_2x/Ipo.c +++ b/source/blender/python/api2_2x/Ipo.c @@ -442,12 +442,13 @@ static int IpoSetAttr (C_Ipo *self, char *name, PyObject *value) /* Description: This is a callback function for the C_Ipo type. It */ /* builds a meaninful string to 'print' ipo objects. */ /*****************************************************************************/ +/* static int IpoPrint(C_Ipo *self, FILE *fp, int flags) { fprintf(fp, "[Ipo \"%s\"]", self->ipo->id.name+2); return 0; } - +*/ /*****************************************************************************/ /* Function: IpoRepr */ /* Description: This is a callback function for the C_Ipo type. It */ @@ -455,7 +456,7 @@ static int IpoPrint(C_Ipo *self, FILE *fp, int flags) /*****************************************************************************/ static PyObject *IpoRepr (C_Ipo *self) { - return PyString_FromString(self->ipo->id.name+2); + return PyString_FromFormat("[Ipo \"%s\"]", self->ipo->id.name+2); } /* Three Python Ipo_Type helper functions needed by the Object module: */ |