From 7d5eaa674b70b13af3c67b2209fdfe32b6168e45 Mon Sep 17 00:00:00 2001 From: Maxime Curioni Date: Tue, 29 Jul 2008 11:19:30 +0000 Subject: soc-2008-mxcurioni: corrected problems in API with UnaryFunction1DVoid subclasses and Curvature2DAngleF1D. Understood that Curve and Noise classes cannot be defined in Freestyle's API because they are already given by Blender's API. Will rename to FrsCurve and FrsNoise and change the corresponding style modules. --- .../intern/python/UnaryFunction1D/BPy_UnaryFunction1DDouble.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/freestyle/intern/python/UnaryFunction1D') diff --git a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DDouble.cpp b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DDouble.cpp index 5b6aed936b9..887d1273e60 100644 --- a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DDouble.cpp +++ b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DDouble.cpp @@ -147,6 +147,11 @@ PyMODINIT_FUNC UnaryFunction1DDouble_Init( PyObject *module ) { Py_INCREF( &DensityF1D_Type ); PyModule_AddObject(module, "DensityF1D", (PyObject *)&DensityF1D_Type); + if( PyType_Ready( &Curvature2DAngleF1D_Type ) < 0 ) + return; + Py_INCREF( &Curvature2DAngleF1D_Type ); + PyModule_AddObject(module, "Curvature2DAngleF1D", (PyObject *)&Curvature2DAngleF1D_Type); + if( PyType_Ready( &GetCompleteViewMapDensityF1D_Type ) < 0 ) return; Py_INCREF( &GetCompleteViewMapDensityF1D_Type ); -- cgit v1.2.3