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/NMesh.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/NMesh.h')
-rw-r--r-- | source/blender/python/api2_2x/NMesh.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/source/blender/python/api2_2x/NMesh.h b/source/blender/python/api2_2x/NMesh.h index 6f1fbf59596..088cca164f3 100644 --- a/source/blender/python/api2_2x/NMesh.h +++ b/source/blender/python/api2_2x/NMesh.h @@ -55,10 +55,12 @@ #include "BIF_space.h" #include "DNA_mesh_types.h" #include "DNA_key_types.h" +#include "DNA_listBase.h" #include "DNA_object_types.h" #include "DNA_material_types.h" #include "DNA_armature_types.h" #include "mydevice.h" +#include "BIF_editkey.h" /* insert_meshkey */ #include "Material.h" #include "Image.h" @@ -68,8 +70,6 @@ #include "modules.h" -void insert_meshkey(Mesh *me); /* defined in editkey.c */ - /* EXPP PyType Objects */ PyTypeObject NMesh_Type; @@ -107,9 +107,15 @@ static char M_NMesh_Vert_doc[] = "([x, y, z]) - Get a new vertice\n\n\ [x, y, z] Specify new coordinates"; +static char NMesh_addMaterial_doc[] = +"(material) - add a new Blender Material 'material' to this Mesh's materials\n\ +list."; + static char NMesh_insertKey_doc[] = -"(frame = None) - inserts a Mesh key at the given frame\n\ -if called without arguments, it inserts the key at the current Scene frame"; +"(frame = None, type = 'relative') - inserts a Mesh key at the given frame\n\ +if called without arguments, it inserts the key at the current Scene frame.\n\ +(type) - 'relative' or 'absolute'. Only relevant on the first call to this\n\ +function for each nmesh."; static char NMesh_removeAllKeys_doc[] = "() - removes all keys from this mesh\n\ @@ -141,7 +147,8 @@ specified by index. The list contains pairs with the \n\ bone name and the weight."; -static char NMesh_update_doc[] = "updates the Mesh"; +static char NMesh_update_doc[] = "(recalc_normals = 0) - updates the Mesh.\n\ +if recalc_normals is given and is equal to 1, normal vectors are recalculated."; /* static char NMesh_asMesh_doc[] = "returns free Mesh datablock object from NMesh"; |