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:
authorCampbell Barton <ideasman42@gmail.com>2007-03-16 14:38:02 +0300
committerCampbell Barton <ideasman42@gmail.com>2007-03-16 14:38:02 +0300
commitbc1fdcd858cc1064fd4b03dac5cc058f22e2b02d (patch)
tree0205cceea8dbc978db1b7289027268bc3a3035e3 /source/blender/python/api2_2x/Particle.c
parentc5f4a0a1b063716982d7e50c872894d39b0dea7c (diff)
type initialization updates, and refcount fix for lamp, reverted some changes to NMesh
Diffstat (limited to 'source/blender/python/api2_2x/Particle.c')
-rw-r--r--source/blender/python/api2_2x/Particle.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Particle.c b/source/blender/python/api2_2x/Particle.c
index d744204991b..e2fdbc5b6ad 100644
--- a/source/blender/python/api2_2x/Particle.c
+++ b/source/blender/python/api2_2x/Particle.c
@@ -362,7 +362,10 @@ PyObject *M_Particle_Get( PyObject * self, PyObject * args )
PyObject *Particle_Init( void )
{
PyObject *submodule;
- Particle_Type.ob_type = &PyType_Type;
+
+ if( PyType_Ready( &Particle_Type) < 0)
+ return NULL;
+
submodule =
Py_InitModule3( "Blender.Particle", M_Particle_methods, M_Particle_doc );
return ( submodule );