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:
authorStephen Swaney <sswaney@centurytel.net>2005-09-29 11:05:00 +0400
committerStephen Swaney <sswaney@centurytel.net>2005-09-29 11:05:00 +0400
commitc4b8a431bcb4b02c9da4e14485e97f6e4cbfa3a3 (patch)
tree470173a773d6c57549e0794ad614a67529b37c32 /source/blender/python/api2_2x/Curve.c
parentf6c7cf7c13a6d730eda40b38819897fb398a85d9 (diff)
fix Curve.update() method to use new DAG features.
Diffstat (limited to 'source/blender/python/api2_2x/Curve.c')
-rw-r--r--source/blender/python/api2_2x/Curve.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/python/api2_2x/Curve.c b/source/blender/python/api2_2x/Curve.c
index 1a65031f1a7..a79f1e63c4c 100644
--- a/source/blender/python/api2_2x/Curve.c
+++ b/source/blender/python/api2_2x/Curve.c
@@ -440,7 +440,8 @@ PyObject *Curve_Init( void )
{
PyObject *submodule;
- Curve_Type.ob_type = &PyType_Type;
+ if( PyType_Ready( &Curve_Type) < 0) /* set exception. -1 is failure */
+ return NULL;
submodule =
Py_InitModule3( "Blender.Curve", M_Curve_methods,
@@ -1280,10 +1281,9 @@ static PyObject *Curve_appendNurb( BPy_Curve * self, PyObject * args )
PyObject *Curve_update( BPy_Curve * self )
{
- freedisplist( &self->curve->disp );
+ Object_updateDag( (void*) self->curve );
- Py_INCREF( Py_None );
- return Py_None;
+ Py_RETURN_NONE;
}
/*