diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2003-07-31 01:15:41 +0400 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2003-07-31 01:15:41 +0400 |
commit | fe07b232b7e7e80569733de2b42e391874de6477 (patch) | |
tree | 5c6d95e7869855163aea95d38fff9b485d5d6d12 /source/blender/python/api2_2x/Material.h | |
parent | 35c4c3222caea20d603e51191b3e85790cd76202 (diff) |
* got rid of a warning in editipo.c:
changed "get_ipo(key, ..." to "get_ipo((ID *)key, ..." in line 107.
* changed insert_meshkey(Mesh *me) to insert_meshkey(Mesh *me, short offline):
To call this function from a script, so that it doesn't pop the
"relative / absolute" dialog window when the "offline" arg is non-zero.
Exppython:
* NMesh module:
- Added method NMesh.addMaterial(mat) to the NMesh module:
alternative safer (aka slower) way to add materials.
- Added optional arg to NMesh_update():
if given and equal to 1, the mesh normals are recalculated.
- Fixed NMesh.getVertexInfluences: it was segfaulting when a NULL bone was
linked to the vertex. Thanks to Jiba on the bf-python mailing list for
bug report and sample .blend file. Also made this method give an IndexError
when the vertex index is out of range.
* Material module:
Added specR, specG, specB vars for compatibility with the 2.25 API.
Pointed by Manuel Bastioni.
* Image module:
Exposed image width, height and depth parameters.
From a suggestion by jms.
* BPython Ref Doc:
- Small updates to reflect the above additions.
- Added info for the Bone type in the Armature doc.
Diffstat (limited to 'source/blender/python/api2_2x/Material.h')
-rw-r--r-- | source/blender/python/api2_2x/Material.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Material.h b/source/blender/python/api2_2x/Material.h index 6fd4c596618..b5ce6a113ab 100644 --- a/source/blender/python/api2_2x/Material.h +++ b/source/blender/python/api2_2x/Material.h @@ -58,6 +58,7 @@ extern PyTypeObject Material_Type; /* The Material PyType Object */ /*****************************************************************************/ PyObject *M_Material_Init (void); PyObject *Material_CreatePyObject (Material *mat); +Material *Material_FromPyObject (PyObject *pyobj); int Material_CheckPyObject (PyObject *pyobj); /* Some functions needed by NMesh.c */ |