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:
authorKen Hughes <khughes@pacific.edu>2006-04-23 21:15:20 +0400
committerKen Hughes <khughes@pacific.edu>2006-04-23 21:15:20 +0400
commite6db82ec04f1b70ee7cd73f6cada77d7dd962676 (patch)
treeae6700a4b731e3b941fe66a1172677a2994fcfd4 /source/blender/python/api2_2x/Modifier.c
parent6f94c5ef5e047abbafef667ca014f830ce3fcbed (diff)
===Python API===
Fix for Cygwin/GCC compile errors: doesn't like PyObject_Del() in the PyTypeObject declarations :-P
Diffstat (limited to 'source/blender/python/api2_2x/Modifier.c')
-rw-r--r--source/blender/python/api2_2x/Modifier.c25
1 files changed, 23 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Modifier.c b/source/blender/python/api2_2x/Modifier.c
index 8e1ae45d060..7df1092166e 100644
--- a/source/blender/python/api2_2x/Modifier.c
+++ b/source/blender/python/api2_2x/Modifier.c
@@ -156,6 +156,7 @@ static PyMappingMethods Modifier_as_mapping = {
/*****************************************************************************/
/* Python Modifier_Type callback function prototypes: */
/*****************************************************************************/
+static void Modifier_dealloc( BPy_Modifier * self );
static PyObject *Modifier_repr( BPy_Modifier * self );
/*****************************************************************************/
@@ -171,7 +172,7 @@ PyTypeObject Modifier_Type = {
/* Methods to implement standard operations */
- ( destructor ) PyObject_Del,/* destructor tp_dealloc; */
+ ( destructor ) Modifier_dealloc,/* destructor tp_dealloc; */
NULL, /* printfunc tp_print; */
NULL, /* getattrfunc tp_getattr; */
NULL, /* setattrfunc tp_setattr; */
@@ -882,6 +883,16 @@ static int Modifier_setData( BPy_Modifier * self, PyObject * key,
}
/*****************************************************************************/
+/* Function: Modifier_dealloc */
+/* Description: This is a callback function for the BPy_Modifier type. It */
+/* destroys data when the object is deleted. */
+/*****************************************************************************/
+static void Modifier_dealloc( BPy_Modifier * self )
+{
+ PyObject_DEL( self );
+}
+
+/*****************************************************************************/
/* Function: Modifier_repr */
/* Description: This is a callback function for the BPy_Modifier type. It */
/* builds a meaningful string to represent modifier objects. */
@@ -1067,6 +1078,16 @@ static PyObject *ModSeq_remove( BPy_ModSeq *self, PyObject *args )
}
/*****************************************************************************/
+/* Function: ModSeq_dealloc */
+/* Description: This is a callback function for the BPy_Modifier type. It */
+/* destroys data when the object is deleted. */
+/*****************************************************************************/
+static void ModSeq_dealloc( BPy_Modifier * self )
+{
+ PyObject_DEL( self );
+}
+
+/*****************************************************************************/
/* Python BPy_ModSeq methods table: */
/*****************************************************************************/
static PyMethodDef BPy_ModSeq_methods[] = {
@@ -1091,7 +1112,7 @@ PyTypeObject ModSeq_Type = {
/* Methods to implement standard operations */
- ( destructor ) PyObject_Del,/* destructor tp_dealloc; */
+ ( destructor ) ModSeq_dealloc,/* destructor tp_dealloc; */
NULL, /* printfunc tp_print; */
NULL, /* getattrfunc tp_getattr; */
NULL, /* setattrfunc tp_setattr; */