diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2003-06-28 11:38:21 +0400 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2003-06-28 11:38:21 +0400 |
commit | eaf1cdd3836aa425e3dc6f1a11d4556bd7e3e876 (patch) | |
tree | fe8e701c3e3daa38749b78238858edbbbfea1f91 /source/blender/python/api2_2x/Effect.c | |
parent | 569a32a2ea3a1992eaeaa5dc0256c48e8a053fbd (diff) |
- More renaming all around to follow our conventions
- Implemented partially Blender.Sys
- Worked on issues related to sys, path
- Took away most "debug" printfs
Diffstat (limited to 'source/blender/python/api2_2x/Effect.c')
-rw-r--r-- | source/blender/python/api2_2x/Effect.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/source/blender/python/api2_2x/Effect.c b/source/blender/python/api2_2x/Effect.c index 60ee4af814a..6e881d56e21 100644 --- a/source/blender/python/api2_2x/Effect.c +++ b/source/blender/python/api2_2x/Effect.c @@ -148,24 +148,25 @@ PyObject * effectlist = PyList_New (0); } /*****************************************************************************/ -/* Function: M_Effect_Init */ +/* Function: Effect_Init */ /*****************************************************************************/ -PyObject *M_Build_Init (void); -PyObject *M_Wave_Init (void); -PyObject *M_Particle_Init (void); +PyObject *Build_Init (void); +PyObject *Wave_Init (void); +PyObject *Particle_Init (void); -PyObject *M_Effect_Init (void) +PyObject *Effect_Init (void) { PyObject *submodule, *dict; - printf ("In M_Effect_Init()\n"); + Effect_Type.ob_type = &PyType_Type; - submodule = Py_InitModule3("Blender.Effect",M_Effect_methods, 0 ); + + submodule = Py_InitModule3("Blender.Effect",M_Effect_methods, 0 ); dict = PyModule_GetDict (submodule); - PyDict_SetItemString (dict, "Wave", M_Wave_Init()); - PyDict_SetItemString (dict, "Build", M_Build_Init()); - PyDict_SetItemString (dict, "Particle", M_Particle_Init()); + PyDict_SetItemString (dict, "Wave", Wave_Init()); + PyDict_SetItemString (dict, "Build", Build_Init()); + PyDict_SetItemString (dict, "Particle", Particle_Init()); return (submodule); } @@ -297,8 +298,6 @@ PyObject* EffectCreatePyObject (struct Effect *effect) { BPy_Effect * blen_object; - printf ("In EffectCreatePyObject\n"); - blen_object = (BPy_Effect*)PyObject_NEW (BPy_Effect, &Effect_Type); if (blen_object == NULL) |