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.
This commit is contained in:
2007-02-23 14:51:20 +00:00
parent 260af5f3c1
commit 086d51c822
20 changed files with 242 additions and 41 deletions

View File

@@ -848,6 +848,10 @@ static int Camera_setName( BPy_Camera * self, PyObject * value )
return 0;
}
static PyObject *Camera_getLib( BPy_Camera * self )
{
return EXPP_GetIdLib((ID *)self->camera);
}
static PyObject *Camera_getUsers( BPy_Camera * self )
{
@@ -1119,6 +1123,10 @@ static PyGetSetDef BPy_Camera_getseters[] = {
(getter)Camera_getName, (setter)Camera_setName,
"Camera name",
NULL},
{"lib",
(getter)Camera_getLib, (setter)NULL,
"Camera libname",
NULL},
{"users",
(getter)Camera_getUsers, (setter)NULL,
"Number of camera users",