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:
authorWillian Padovani Germano <wpgermano@gmail.com>2003-07-04 06:56:07 +0400
committerWillian Padovani Germano <wpgermano@gmail.com>2003-07-04 06:56:07 +0400
commit28b8e667a0c2ef77dd862bc40909d089a96d1324 (patch)
treeefc078e90cccadf505b40b15d35c8a351f386071 /source/blender/python/api2_2x/Camera.h
parent77213f7da686deb008f8e9b993325f1560919b9b (diff)
Exppython:
- Fixed a problem with control of the global Python dictionary persistence: Blender.ReleaseGlobalDict(bool) should now work fine. - Trying to fix the sigsegv crashes on Windows: They happen when we try to "print" our objects, like Lamps or Cameras. Following advice from the Python Embedding doc, removed the tp_print method from Camera and also improved its tp_repr one, that will be used as print, repr() and str() for Cameras. If this test works all other objs will be updated accordingly.
Diffstat (limited to 'source/blender/python/api2_2x/Camera.h')
-rw-r--r--source/blender/python/api2_2x/Camera.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Camera.h b/source/blender/python/api2_2x/Camera.h
index ead55e01277..b0a2a643c43 100644
--- a/source/blender/python/api2_2x/Camera.h
+++ b/source/blender/python/api2_2x/Camera.h
@@ -174,7 +174,7 @@ static PyMethodDef BPy_Camera_methods[] = {
/* Python Camera_Type callback function prototypes: */
/*****************************************************************************/
static void Camera_dealloc (BPy_Camera *self);
-static int Camera_print (BPy_Camera *self, FILE *fp, int flags);
+//static int Camera_print (BPy_Camera *self, FILE *fp, int flags);
static int Camera_setAttr (BPy_Camera *self, char *name, PyObject *v);
static int Camera_compare (BPy_Camera *a, BPy_Camera *b);
static PyObject *Camera_getAttr (BPy_Camera *self, char *name);