[Bf-python] loose ends in Curve

antont at kyperjokki.fi antont at kyperjokki.fi
Sun Oct 9 15:18:34 CEST 2005


On Sunday 09 October 2005 14:30, antont at kyperjokki.fi wrote:
> - the newly created curves don't show! the only way i've found to get them
> appear is to go to the outliner, expand the curve object, and click on the
> curvedata in it .. then it appears immediately. i just realized that this
> is recent, 'cause did not have the problem two weeks ago. i suppose some
> internal change has caused this .. will bug Ton

seems that Stephen did touch it recently, could this cause that?
http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/python/api2_2x/Curve.c.diff?r1=1.35&r2=1.36&cvsroot=bf-blender

===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/python/api2_2x/Curve.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- blender/source/blender/python/api2_2x/Curve.c 2005/09/12 06:07:19 1.35
+++ blender/source/blender/python/api2_2x/Curve.c 2005/09/29 07:05:00 1.36
@@ -1,5 +1,5 @@
 /* 
- * $Id: Curve.c,v 1.35 2005/09/12 06:07:19 stiv Exp $
+ * $Id: Curve.c,v 1.36 2005/09/29 07:05:00 stiv Exp $
  * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
  *
  * This program is free software; you can redistribute it and/or
@@ -440,7 +440,8 @@
 {
  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 @@
 
 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;
 }
 
 /*

~Toni



More information about the Bf-python mailing list