diff options
author | Jacques Guignot <guignot@wanadoo.fr> | 2004-06-08 11:27:37 +0400 |
---|---|---|
committer | Jacques Guignot <guignot@wanadoo.fr> | 2004-06-08 11:27:37 +0400 |
commit | 21580bf21c033c58477924df2c9852c16e107b68 (patch) | |
tree | e8b4689b630be66dc720c1671e2279a2e478d473 /source/blender/python/api2_2x/Metaball.h | |
parent | 25a0df8b711c4b7841342a069975681cba14fb33 (diff) |
new function for the Metaball objects : addMetaelem, which allows users to create Metaballs from python.
modified doc/Metaball.py to add this function
modified Object.c to allow the creation of Metaball objects
Diffstat (limited to 'source/blender/python/api2_2x/Metaball.h')
-rw-r--r-- | source/blender/python/api2_2x/Metaball.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Metaball.h b/source/blender/python/api2_2x/Metaball.h index d97e36fd53c..6c25905740b 100644 --- a/source/blender/python/api2_2x/Metaball.h +++ b/source/blender/python/api2_2x/Metaball.h @@ -82,6 +82,7 @@ struct PyMethodDef M_Metaball_methods[] = { /*****************************************************************************/ /* Python BPy_Metaball methods declarations: */ /*****************************************************************************/ +static PyObject *Metaball_addMetaelem(BPy_Metaball *self,PyObject*args); static PyObject *Metaball_getBbox(BPy_Metaball *self); static PyObject *Metaball_getName(BPy_Metaball *self); static PyObject *Metaball_setName(BPy_Metaball *self,PyObject*args); @@ -120,6 +121,8 @@ static PyMethodDef BPy_Metaball_methods[] = { /* name, method, flags, doc */ {"getName", (PyCFunction)Metaball_getName,\ METH_NOARGS, "() - Return Metaball name"}, + {"addMetaelem", (PyCFunction)Metaball_addMetaelem,\ + METH_VARARGS, "() -Adds a metaelem to the metaball"}, {"setName", (PyCFunction)Metaball_setName,\ METH_VARARGS, "() - Sets Metaball name"}, {"getWiresize", (PyCFunction)Metaball_getWiresize,\ |