diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2003-07-05 05:18:41 +0400 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2003-07-05 05:18:41 +0400 |
commit | aa820ec42094c2799ca618d3ee174993358c9573 (patch) | |
tree | 41a122e1c1abf87dbe0911548568c1301a277cf2 /source/blender/python/api2_2x/Camera.c | |
parent | 20df091c042be721fae0cac911844d603f1dd140 (diff) |
Exppython:
- Continued getting rid of print methods and updating repr ones:
Needed to fix crashes on Windows >= 98 systems.
- Found and fixed a few small memory leaks in EXPP_interface, related to
execution of script links.
Diffstat (limited to 'source/blender/python/api2_2x/Camera.c')
-rw-r--r-- | source/blender/python/api2_2x/Camera.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/source/blender/python/api2_2x/Camera.c b/source/blender/python/api2_2x/Camera.c index 913949789d4..f1317c876e5 100644 --- a/source/blender/python/api2_2x/Camera.c +++ b/source/blender/python/api2_2x/Camera.c @@ -50,7 +50,6 @@ PyTypeObject Camera_Type = 0, /* tp_itemsize */ /* methods */ (destructor)Camera_dealloc, /* tp_dealloc */ -// (printfunc)Camera_print, /* tp_print */ 0, /* tp_print */ (getattrfunc)Camera_getAttr, /* tp_getattr */ (setattrfunc)Camera_setAttr, /* tp_setattr */ @@ -76,7 +75,6 @@ static PyObject *M_Camera_New(PyObject *self, PyObject *args, PyObject *kwords) Camera *blcam; /* for actual Camera Data we create in Blender */ char buf[21]; - printf ("In Camera_New()\n"); /* Parse the arguments passed in by the Python interpreter */ if (!PyArg_ParseTupleAndKeywords(args, kwords, "|ss", kwlist, &type_str, &name_str)) @@ -583,13 +581,7 @@ static int Camera_compare (BPy_Camera *a, BPy_Camera *b) Camera *pa = a->camera, *pb = b->camera; return (pa == pb) ? 0:-1; } -/* -static int Camera_print(BPy_Camera *self, FILE *fp, int flags) -{ - fprintf(fp, "[Camera \"%s\"]", self->camera->id.name+2); - return 0; -} -*/ + static PyObject *Camera_repr (BPy_Camera *self) { return PyString_FromFormat("[Camera \"%s\"]", self->camera->id.name+2); |