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:
authorJacques Guignot <guignot@wanadoo.fr>2003-07-04 20:06:39 +0400
committerJacques Guignot <guignot@wanadoo.fr>2003-07-04 20:06:39 +0400
commit82e1783dcb9397de1b83dff1186fccc15707531f (patch)
tree159065c0dc14e2a688e498f765bce02317250c95 /source/blender/python/api2_2x/Particle.c
parent28b8e667a0c2ef77dd862bc40909d089a96d1324 (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/Particle.c')
-rw-r--r--source/blender/python/api2_2x/Particle.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/python/api2_2x/Particle.c b/source/blender/python/api2_2x/Particle.c
index f438eb5ad3f..4df78194cdb 100644
--- a/source/blender/python/api2_2x/Particle.c
+++ b/source/blender/python/api2_2x/Particle.c
@@ -137,7 +137,7 @@ PyTypeObject Particle_Type =
0,
(destructor)ParticleDeAlloc,
- (printfunc)ParticlePrint,
+ 0,
(getattrfunc)ParticleGetAttr,
(setattrfunc)ParticleSetAttr,
0,
@@ -573,8 +573,6 @@ PyObject *Particle_setForce(BPy_Particle *self,PyObject *args)
val[0] = PyFloat_AsDouble(PyTuple_GetItem(args,0));
val[1] = PyFloat_AsDouble(PyTuple_GetItem(args,1));
val[2] = PyFloat_AsDouble(PyTuple_GetItem(args,2));
- printf("In Particle_setForce %f %f %f \n",val[0],val[1],val[2]);
- printf("%d %d \n",PyTuple_Check(args),PyTuple_Size(args));
/*
if (!PyArg_ParseTuple(args, "fff", val,val+1,val+2 ))
return(EXPP_ReturnPyObjError(PyExc_AttributeError,\
@@ -859,12 +857,13 @@ int ParticleSetAttr (BPy_Particle *self, char *name, PyObject *value)
/* Description: This is a callback function for the BPy_Particle type. It */
/* particles a meaninful string to 'print' particle objects. */
/*****************************************************************************/
+/*
int ParticlePrint(BPy_Particle *self, FILE *fp, int flags)
{
printf("Hi, I'm a particle!");
return 0;
}
-
+*/
/*****************************************************************************/
/* Function: ParticleRepr */
/* Description: This is a callback function for the BPy_Particle type. It */