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/Font.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/Font.c')
-rw-r--r-- | source/blender/python/api2_2x/Font.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/source/blender/python/api2_2x/Font.c b/source/blender/python/api2_2x/Font.c index bb9b700727a..660b1225eb7 100644 --- a/source/blender/python/api2_2x/Font.c +++ b/source/blender/python/api2_2x/Font.c @@ -242,6 +242,11 @@ static int Font_setFilename( BPy_Font * self, PyObject * value ) } +static PyObject *Font_getLib( BPy_Font * self ) +{ + return EXPP_GetIdLib((ID *)self->font); +} + /*--------------- BPy_Font.pack()---------------------------------*/ static PyObject *Font_pack( BPy_Font * self ) { @@ -291,14 +296,18 @@ static PyGetSetDef BPy_Font_getseters[] = { (getter)Font_getName, (setter)Font_setName, "Font name", NULL}, - {"filename", - (getter)Font_getFilename, (setter)Font_setFilename, - "Font filepath", + {"lib", + (getter)Font_getLib, (setter)NULL, + "Font linked library", NULL}, {"users", (getter)Font_getUsers, (setter)NULL, "Number of font users", NULL}, + {"filename", + (getter)Font_getFilename, (setter)Font_setFilename, + "Font filepath", + NULL}, {"packed", (getter)Font_getPacked, (setter)NULL, "Packed status", |