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:
authorWillian Padovani Germano <wpgermano@gmail.com>2004-04-23 17:11:48 +0400
committerWillian Padovani Germano <wpgermano@gmail.com>2004-04-23 17:11:48 +0400
commitabe8191d7091b12604a1f427dc1e1bce15d7053e (patch)
tree3767e375f88fc32ac87d0628ac916525217a5921 /source/blender/python/api2_2x/Effect.c
parentda7b4711a425aca00da78520d021acef57bae59f (diff)
BPython:
- fixed two warnings, unused var in Object.c and undeclared function in script.c - updated Blender.Draw doc, it was missing info about Button object - refactored pytype initialization to try to fix for once platform (and distro!) specific crashes on startup. This asked for tiny updates in Effect.[ch] (removed static from declaration, moved definitions to the .c file) and modules.h - fixed error I made trying to fix scripts w/ no [eol] char in menus. Thanks Michael Velikanje for reporting the problem!
Diffstat (limited to 'source/blender/python/api2_2x/Effect.c')
-rw-r--r--source/blender/python/api2_2x/Effect.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Effect.c b/source/blender/python/api2_2x/Effect.c
index 13afa2a5ad8..ac6edead28a 100644
--- a/source/blender/python/api2_2x/Effect.c
+++ b/source/blender/python/api2_2x/Effect.c
@@ -33,6 +33,40 @@
#include "Particle.h"
#include "Wave.h"
+/*****************************************************************************/
+/* Python BPy_Effect methods table: */
+/*****************************************************************************/
+static PyMethodDef BPy_Effect_methods[] = {
+ {0}
+};
+
+/*****************************************************************************/
+/* Python Effect_Type structure definition: */
+/*****************************************************************************/
+PyTypeObject Effect_Type =
+{
+ PyObject_HEAD_INIT(NULL)
+ 0, /* ob_size */
+ "Effect", /* tp_name */
+ sizeof (BPy_Effect), /* tp_basicsize */
+ 0, /* tp_itemsize */
+ /* methods */
+ (destructor)EffectDeAlloc, /* tp_dealloc */
+ 0, /* tp_print */
+ (getattrfunc)EffectGetAttr, /* tp_getattr */
+ (setattrfunc)EffectSetAttr, /* tp_setattr */
+ 0, /* tp_compare */
+ (reprfunc)EffectRepr, /* tp_repr */
+ 0, /* tp_as_number */
+ 0, /* tp_as_sequence */
+ 0, /* tp_as_mapping */
+ 0, /* tp_as_hash */
+ 0,0,0,0,0,0,
+ 0, /* tp_doc */
+ 0,0,0,0,0,0,
+ BPy_Effect_methods, /* tp_methods */
+ 0, /* tp_members */
+};
/*****************************************************************************/
/* Python method structure definition for Blender.Effect module: */