[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [54735] branches/soc-2008-mxcurioni/source /blender/freestyle/intern/python: Freestyle Python API improvements - part 6.

Tamito Kajiyama rd6t-kjym at asahi-net.or.jp
Fri Feb 22 02:57:21 CET 2013


Revision: 54735
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=54735
Author:   kjym3
Date:     2013-02-22 01:57:20 +0000 (Fri, 22 Feb 2013)
Log Message:
-----------
Freestyle Python API improvements - part 6.

Fix for PyGetSetDef and proper handling of keyword arguments were done in
Function0D and Function1D classes.  Additional code clean-up was also made.

Modified Paths:
--------------
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_UnaryFunction0D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_UnaryFunction1D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DDouble.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DEdgeNature.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DFloat.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DId.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DMaterial.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DUnsigned.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVec2f.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVec3f.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVectorViewShape.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DViewShape.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_Id/BPy_ShapeIdF0D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_Material/BPy_MaterialF0D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_Nature_EdgeNature/BPy_CurveNatureF0D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_Vec2f/BPy_Normal2DF0D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_Vec2f/BPy_VertexOrientation2DF0D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_Vec3f/BPy_VertexOrientation3DF0D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_ViewShape/BPy_GetOccludeeF0D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_ViewShape/BPy_GetShapeF0D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_double/BPy_Curvature2DAngleF0D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_double/BPy_DensityF0D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_double/BPy_GetProjectedXF0D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_double/BPy_GetProjectedYF0D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_double/BPy_GetProjectedZF0D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_double/BPy_GetXF0D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_double/BPy_GetYF0D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_double/BPy_GetZF0D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_double/BPy_LocalAverageDepthF0D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_double/BPy_ZDiscontinuityF0D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_float/BPy_GetCurvilinearAbscissaF0D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_float/BPy_GetParameterF0D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_float/BPy_GetViewMapGradientNormF0D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_float/BPy_ReadCompleteViewMapPixelF0D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_float/BPy_ReadMapPixelF0D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_float/BPy_ReadSteerableViewMapPixelF0D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_unsigned_int/BPy_QuantitativeInvisibilityF0D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_vector_ViewShape/BPy_GetOccludersF0D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DDouble.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DEdgeNature.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DFloat.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DUnsigned.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec2f.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec3f.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVectorViewShape.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVoid.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_Nature_EdgeNature/BPy_CurveNatureF1D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_Vec2f/BPy_Normal2DF1D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_Vec2f/BPy_Orientation2DF1D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_Vec3f/BPy_Orientation3DF1D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_Curvature2DAngleF1D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_DensityF1D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_GetCompleteViewMapDensityF1D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_GetDirectionalViewMapDensityF1D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_GetProjectedXF1D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_GetProjectedYF1D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_GetProjectedZF1D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_GetSteerableViewMapDensityF1D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_GetViewMapGradientNormF1D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_GetXF1D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_GetYF1D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_GetZF1D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_LocalAverageDepthF1D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_ZDiscontinuityF1D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_unsigned_int/BPy_QuantitativeInvisibilityF1D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_vector_ViewShape/BPy_GetOccludeeF1D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_vector_ViewShape/BPy_GetOccludersF1D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_vector_ViewShape/BPy_GetShapeF1D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_void/BPy_ChainingTimeStampF1D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_void/BPy_IncrementChainingTimeStampF1D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_void/BPy_TimeStampF1D.cpp

Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_UnaryFunction0D.cpp
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_UnaryFunction0D.cpp	2013-02-22 01:49:51 UTC (rev 54734)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_UnaryFunction0D.cpp	2013-02-22 01:57:20 UTC (rev 54735)
@@ -19,26 +19,26 @@
 ///////////////////////////////////////////////////////////////////////////////////////////
 
 //-------------------MODULE INITIALIZATION--------------------------------
-int UnaryFunction0D_Init( PyObject *module )
+int UnaryFunction0D_Init(PyObject *module)
 {
-	if( module == NULL )
+	if (module == NULL)
 		return -1;
 
-	if( PyType_Ready( &UnaryFunction0D_Type ) < 0 )
+	if (PyType_Ready(&UnaryFunction0D_Type) < 0)
 		return -1;
-	Py_INCREF( &UnaryFunction0D_Type );
+	Py_INCREF(&UnaryFunction0D_Type);
 	PyModule_AddObject(module, "UnaryFunction0D", (PyObject *)&UnaryFunction0D_Type);
 
-	UnaryFunction0DDouble_Init( module );
-	UnaryFunction0DEdgeNature_Init( module );
-	UnaryFunction0DFloat_Init( module );
-	UnaryFunction0DId_Init( module );
-	UnaryFunction0DMaterial_Init( module );
-	UnaryFunction0DUnsigned_Init( module );
-	UnaryFunction0DVec2f_Init( module );
-	UnaryFunction0DVec3f_Init( module );
-	UnaryFunction0DVectorViewShape_Init( module );
-	UnaryFunction0DViewShape_Init( module );
+	UnaryFunction0DDouble_Init(module);
+	UnaryFunction0DEdgeNature_Init(module);
+	UnaryFunction0DFloat_Init(module);
+	UnaryFunction0DId_Init(module);
+	UnaryFunction0DMaterial_Init(module);
+	UnaryFunction0DUnsigned_Init(module);
+	UnaryFunction0DVec2f_Init(module);
+	UnaryFunction0DVec3f_Init(module);
+	UnaryFunction0DVectorViewShape_Init(module);
+	UnaryFunction0DViewShape_Init(module);
 	
 	return 0;
 }
@@ -67,15 +67,31 @@
 
 static void UnaryFunction0D___dealloc__(BPy_UnaryFunction0D* self)
 {
-    Py_TYPE(self)->tp_free((PyObject*)self);
+	Py_TYPE(self)->tp_free((PyObject*)self);
 }
 
-
 static PyObject * UnaryFunction0D___repr__(BPy_UnaryFunction0D* self)
 {
-    return PyUnicode_FromString("UnaryFunction0D");
+	return PyUnicode_FromString("UnaryFunction0D");
 }
 
+/*----------------------UnaryFunction0D get/setters ----------------------------*/
+
+PyDoc_STRVAR(UnaryFunction0D_name_doc,
+"The name of the unary 0D function.\n"
+"\n"
+":type: str");
+
+static PyObject *UnaryFunction0D_name_get(BPy_UnaryFunction0D *self, void *UNUSED(closure))
+{
+	return PyUnicode_FromString(Py_TYPE(self)->tp_name);
+}
+
+static PyGetSetDef BPy_UnaryFunction0D_getseters[] = {
+	{(char *)"name", (getter)UnaryFunction0D_name_get, (setter)NULL, (char *)UnaryFunction0D_name_doc, NULL},
+	{NULL, NULL, NULL, NULL, NULL}  /* Sentinel */
+};
+
 /*-----------------------BPy_UnaryFunction0D type definition ------------------------------*/
 
 PyTypeObject UnaryFunction0D_Type = {
@@ -108,7 +124,7 @@
 	0,                              /* tp_iternext */
 	0,                              /* tp_methods */
 	0,                              /* tp_members */
-	0,                              /* tp_getset */
+	BPy_UnaryFunction0D_getseters,  /* tp_getset */
 	0,                              /* tp_base */
 	0,                              /* tp_dict */
 	0,                              /* tp_descr_get */

Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_UnaryFunction1D.cpp
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_UnaryFunction1D.cpp	2013-02-22 01:49:51 UTC (rev 54734)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_UnaryFunction1D.cpp	2013-02-22 01:57:20 UTC (rev 54735)
@@ -16,24 +16,24 @@
 ///////////////////////////////////////////////////////////////////////////////////////////
 
 //-------------------MODULE INITIALIZATION--------------------------------
-int UnaryFunction1D_Init( PyObject *module )
+int UnaryFunction1D_Init(PyObject *module)
 {
-	if( module == NULL )
+	if (module == NULL)
 		return -1;
 
-	if( PyType_Ready( &UnaryFunction1D_Type ) < 0 )
+	if (PyType_Ready(&UnaryFunction1D_Type) < 0)
 		return -1;
-	Py_INCREF( &UnaryFunction1D_Type );
+	Py_INCREF(&UnaryFunction1D_Type);
 	PyModule_AddObject(module, "UnaryFunction1D", (PyObject *)&UnaryFunction1D_Type);
 
-	UnaryFunction1DDouble_Init( module );
-	UnaryFunction1DEdgeNature_Init( module );
-	UnaryFunction1DFloat_Init( module );
-	UnaryFunction1DUnsigned_Init( module );
-	UnaryFunction1DVec2f_Init( module );
-	UnaryFunction1DVec3f_Init( module );
-	UnaryFunction1DVectorViewShape_Init( module );
-	UnaryFunction1DVoid_Init( module );
+	UnaryFunction1DDouble_Init(module);
+	UnaryFunction1DEdgeNature_Init(module);
+	UnaryFunction1DFloat_Init(module);
+	UnaryFunction1DUnsigned_Init(module);
+	UnaryFunction1DVec2f_Init(module);
+	UnaryFunction1DVec3f_Init(module);
+	UnaryFunction1DVectorViewShape_Init(module);
+	UnaryFunction1DVoid_Init(module);
 	return 0;
 }
 
@@ -59,14 +59,31 @@
 
 static void UnaryFunction1D___dealloc__(BPy_UnaryFunction1D* self)
 {
-    Py_TYPE(self)->tp_free((PyObject*)self);
+	Py_TYPE(self)->tp_free((PyObject*)self);
 }
 
 static PyObject * UnaryFunction1D___repr__(BPy_UnaryFunction1D* self)
 {
-    return PyUnicode_FromString("UnaryFunction1D");
+	return PyUnicode_FromString("UnaryFunction1D");
 }
 
+/*----------------------UnaryFunction1D get/setters ----------------------------*/
+
+PyDoc_STRVAR(UnaryFunction1D_name_doc,
+"The name of the unary 1D function.\n"
+"\n"
+":type: str");
+
+static PyObject *UnaryFunction1D_name_get(BPy_UnaryFunction1D *self, void *UNUSED(closure))
+{
+	return PyUnicode_FromString(Py_TYPE(self)->tp_name);
+}
+
+static PyGetSetDef BPy_UnaryFunction1D_getseters[] = {
+	{(char *)"name", (getter)UnaryFunction1D_name_get, (setter)NULL, (char *)UnaryFunction1D_name_doc, NULL},
+	{NULL, NULL, NULL, NULL, NULL}  /* Sentinel */
+};
+
 /*-----------------------BPy_UnaryFunction1D type definition ------------------------------*/
 
 PyTypeObject UnaryFunction1D_Type = {
@@ -99,7 +116,7 @@
 	0,                              /* tp_iternext */
 	0,                              /* tp_methods */
 	0,                              /* tp_members */
-	0,                              /* tp_getset */
+	BPy_UnaryFunction1D_getseters,  /* tp_getset */
 	0,                              /* tp_base */
 	0,                              /* tp_dict */
 	0,                              /* tp_descr_get */

Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DDouble.cpp
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DDouble.cpp	2013-02-22 01:49:51 UTC (rev 54734)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DDouble.cpp	2013-02-22 01:57:20 UTC (rev 54735)
@@ -24,64 +24,64 @@
 
 //-------------------MODULE INITIALIZATION--------------------------------
 
-int UnaryFunction0DDouble_Init( PyObject *module ) {
-
-	if( module == NULL )
+int UnaryFunction0DDouble_Init(PyObject *module)
+{
+	if (module == NULL)
 		return -1;
 
-	if( PyType_Ready( &UnaryFunction0DDouble_Type ) < 0 )
+	if (PyType_Ready(&UnaryFunction0DDouble_Type) < 0)
 		return -1;
-	Py_INCREF( &UnaryFunction0DDouble_Type );
+	Py_INCREF(&UnaryFunction0DDouble_Type);
 	PyModule_AddObject(module, "UnaryFunction0DDouble", (PyObject *)&UnaryFunction0DDouble_Type);
 	
-	if( PyType_Ready( &DensityF0D_Type ) < 0 )
+	if (PyType_Ready(&DensityF0D_Type) < 0)
 		return -1;
-	Py_INCREF( &DensityF0D_Type );
+	Py_INCREF(&DensityF0D_Type);
 	PyModule_AddObject(module, "DensityF0D", (PyObject *)&DensityF0D_Type);
 	
-	if( PyType_Ready( &LocalAverageDepthF0D_Type ) < 0 )
+	if (PyType_Ready(&LocalAverageDepthF0D_Type) < 0)
 		return -1;
-	Py_INCREF( &LocalAverageDepthF0D_Type );
+	Py_INCREF(&LocalAverageDepthF0D_Type);
 	PyModule_AddObject(module, "LocalAverageDepthF0D", (PyObject *)&LocalAverageDepthF0D_Type);
 	
-	if( PyType_Ready( &Curvature2DAngleF0D_Type ) < 0 )
+	if (PyType_Ready(&Curvature2DAngleF0D_Type) < 0)
 		return -1;
-	Py_INCREF( &Curvature2DAngleF0D_Type );
+	Py_INCREF(&Curvature2DAngleF0D_Type);
 	PyModule_AddObject(module, "Curvature2DAngleF0D", (PyObject *)&Curvature2DAngleF0D_Type);
 	
-	if( PyType_Ready( &GetProjectedXF0D_Type ) < 0 )
+	if (PyType_Ready(&GetProjectedXF0D_Type) < 0)
 		return -1;
-	Py_INCREF( &GetProjectedXF0D_Type );
+	Py_INCREF(&GetProjectedXF0D_Type);
 	PyModule_AddObject(module, "GetProjectedXF0D", (PyObject *)&GetProjectedXF0D_Type);
 	
-	if( PyType_Ready( &GetProjectedYF0D_Type ) < 0 )
+	if (PyType_Ready(&GetProjectedYF0D_Type) < 0)
 		return -1;
-	Py_INCREF( &GetProjectedYF0D_Type );
+	Py_INCREF(&GetProjectedYF0D_Type);
 	PyModule_AddObject(module, "GetProjectedYF0D", (PyObject *)&GetProjectedYF0D_Type);
 	
-	if( PyType_Ready( &GetProjectedZF0D_Type ) < 0 )
+	if (PyType_Ready(&GetProjectedZF0D_Type) < 0)
 		return -1;
-	Py_INCREF( &GetProjectedZF0D_Type );
+	Py_INCREF(&GetProjectedZF0D_Type);
 	PyModule_AddObject(module, "GetProjectedZF0D", (PyObject *)&GetProjectedZF0D_Type);
 		
-	if( PyType_Ready( &GetXF0D_Type ) < 0 )
+	if (PyType_Ready(&GetXF0D_Type) < 0)
 		return -1;
-	Py_INCREF( &GetXF0D_Type );
+	Py_INCREF(&GetXF0D_Type);
 	PyModule_AddObject(module, "GetXF0D", (PyObject *)&GetXF0D_Type);
 	
-	if( PyType_Ready( &GetYF0D_Type ) < 0 )
+	if (PyType_Ready(&GetYF0D_Type) < 0)
 		return -1;
-	Py_INCREF( &GetYF0D_Type );
+	Py_INCREF(&GetYF0D_Type);
 	PyModule_AddObject(module, "GetYF0D", (PyObject *)&GetYF0D_Type);
 	
-	if( PyType_Ready( &GetZF0D_Type ) < 0 )
+	if (PyType_Ready(&GetZF0D_Type) < 0)
 		return -1;
-	Py_INCREF( &GetZF0D_Type );
+	Py_INCREF(&GetZF0D_Type);
 	PyModule_AddObject(module, "GetZF0D", (PyObject *)&GetZF0D_Type);
 	
-	if( PyType_Ready( &ZDiscontinuityF0D_Type ) < 0 )
+	if (PyType_Ready(&ZDiscontinuityF0D_Type) < 0)
 		return -1;
-	Py_INCREF( &ZDiscontinuityF0D_Type );
+	Py_INCREF(&ZDiscontinuityF0D_Type);
 	PyModule_AddObject(module, "ZDiscontinuityF0D", (PyObject *)&ZDiscontinuityF0D_Type);
 
 	return 0;
@@ -101,8 +101,10 @@
 
 static int UnaryFunction0DDouble___init__(BPy_UnaryFunction0DDouble* self, PyObject *args, PyObject *kwds)
 {
-    if ( !PyArg_ParseTuple(args, "") )
-        return -1;

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-blender-cvs mailing list