diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-02-23 17:51:20 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-02-23 17:51:20 +0300 |
commit | 086d51c822774ec68e95d9ab68679fb219ad8a12 (patch) | |
tree | 49591a038e005b8aaa7263668929d645dbfc8ca1 /source/blender/python/api2_2x/Mesh.c | |
parent | 260af5f3c1590900353cce62657536bc96d3f53b (diff) |
BPython API
* Added data.lib attributes to almost all data types, (except for Text3d and NLA)
This is None or the path of the library as a string.
* Main was giving a warning, Include Curve.h rather then CurNurb.h
* Added Library.LinkedLibs(), returns a list of externaly linked libs.
Diffstat (limited to 'source/blender/python/api2_2x/Mesh.c')
-rw-r--r-- | source/blender/python/api2_2x/Mesh.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Mesh.c b/source/blender/python/api2_2x/Mesh.c index d2e68b426c7..98396a743ca 100644 --- a/source/blender/python/api2_2x/Mesh.c +++ b/source/blender/python/api2_2x/Mesh.c @@ -7195,6 +7195,11 @@ static PyObject *Mesh_getUsers( BPy_Mesh * self ) "couldn't get Mesh.users attribute" ); } +static PyObject *Mesh_getLib(BPy_Mesh *self) +{ + return EXPP_GetIdLib((ID *)self->mesh); +} + static PyObject *Mesh_getFakeUser( BPy_Mesh * self ) { if (self->mesh->id.flag & LIB_FAKEUSER) @@ -7661,6 +7666,10 @@ static PyGetSetDef BPy_Mesh_getseters[] = { (getter)Mesh_getUsers, (setter)NULL, "Number of users of the mesh", NULL}, + {"lib", + (getter)Mesh_getLib, (setter)NULL, + "Meshes external library", + NULL}, {"fakeUser", (getter)Mesh_getFakeUser, (setter)Mesh_setFakeUser, "The fake user status of this mesh", |