[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [10738] trunk/blender/source/blender/ python/api2_2x/sceneTimeLine.c: own bad error.
Campbell Barton
cbarton at metavr.com
Sun May 20 11:02:16 CEST 2007
Revision: 10738
https://svn.blender.org//revision/?rev=10738&view=rev
Author: campbellbarton
Date: 2007-05-20 11:02:16 +0200 (Sun, 20 May 2007)
Log Message:
-----------
own bad error. calling scene.timeline would crash blender.
Modified Paths:
--------------
trunk/blender/source/blender/python/api2_2x/sceneTimeLine.c
Modified: trunk/blender/source/blender/python/api2_2x/sceneTimeLine.c
===================================================================
--- trunk/blender/source/blender/python/api2_2x/sceneTimeLine.c 2007-05-20 07:41:21 UTC (rev 10737)
+++ trunk/blender/source/blender/python/api2_2x/sceneTimeLine.c 2007-05-20 09:02:16 UTC (rev 10738)
@@ -82,6 +82,12 @@
{NULL, NULL, 0, NULL}
};
+/*-----------------------dealloc----------------------------------------*/
+static void TimeLine_dealloc( BPy_TimeLine * self )
+{
+ PyObject_DEL( self );
+}
+
/*-----------------------getattr----------------------------------------*/
static PyObject *TimeLine_getattr (BPy_TimeLine *self, char *name) {
return Py_FindMethod( BPy_TimeLine_methods, ( PyObject * ) self, name );
@@ -114,7 +120,7 @@
sizeof (BPy_TimeLine), /* tp_basicsize */
0, /* tp_itemsize */
/* methods */
- NULL, /* tp_dealloc */
+ ( destructor ) TimeLine_dealloc, /* tp_dealloc */
(printfunc) 0, /* tp_print */
(getattrfunc) TimeLine_getattr, /* tp_getattr */
(setattrfunc) TimeLine_setattr, /* tp_setattr */
More information about the Bf-blender-cvs
mailing list