diff options
author | Jacques Guignot <guignot@wanadoo.fr> | 2003-07-04 20:06:39 +0400 |
---|---|---|
committer | Jacques Guignot <guignot@wanadoo.fr> | 2003-07-04 20:06:39 +0400 |
commit | 82e1783dcb9397de1b83dff1186fccc15707531f (patch) | |
tree | 159065c0dc14e2a688e498f765bce02317250c95 /source/blender/python/api2_2x/Effect.c | |
parent | 28b8e667a0c2ef77dd862bc40909d089a96d1324 (diff) |
Following Willian's proposal,deleted the print function, which caused crashes.
The objects are now printed with the repr function.
Diffstat (limited to 'source/blender/python/api2_2x/Effect.c')
-rw-r--r-- | source/blender/python/api2_2x/Effect.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Effect.c b/source/blender/python/api2_2x/Effect.c index 6e881d56e21..13afa2a5ad8 100644 --- a/source/blender/python/api2_2x/Effect.c +++ b/source/blender/python/api2_2x/Effect.c @@ -271,6 +271,7 @@ int EffectSetAttr (BPy_Effect *self, char *name, PyObject *value) /* Description: This is a callback function for the BPy_Effect type. It */ /* builds a meaninful string to 'print' effcte objects. */ /*****************************************************************************/ +/* int EffectPrint(BPy_Effect *self, FILE *fp, int flags) { if (self->effect->type == EFF_BUILD)puts("Effect Build"); @@ -279,12 +280,13 @@ if (self->effect->type == EFF_WAVE)puts("Effect Wave"); return 0; } - +*/ /*****************************************************************************/ /* Function: EffectRepr */ /* Description: This is a callback function for the BPy_Effect type. It */ /* builds a meaninful string to represent effcte objects. */ /*****************************************************************************/ + PyObject *EffectRepr (BPy_Effect *self) { char*str=""; |