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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user