Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2007-02-23 17:51:20 +0300
committerCampbell Barton <ideasman42@gmail.com>2007-02-23 17:51:20 +0300
commit086d51c822774ec68e95d9ab68679fb219ad8a12 (patch)
tree49591a038e005b8aaa7263668929d645dbfc8ca1 /source/blender/python/api2_2x/Group.c
parent260af5f3c1590900353cce62657536bc96d3f53b (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/Group.c')
-rwxr-xr-xsource/blender/python/api2_2x/Group.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Group.c b/source/blender/python/api2_2x/Group.c
index 33465574f79..4fb3a4c099b 100755
--- a/source/blender/python/api2_2x/Group.c
+++ b/source/blender/python/api2_2x/Group.c
@@ -245,6 +245,13 @@ static PyObject *Group_getName( BPy_Group * self )
"couldn't get Group.name attribute" ) );
}
+static PyObject *Group_getLib( BPy_Group * self )
+{
+ GROUP_DEL_CHECK_PY(self);
+ return EXPP_GetIdLib((ID *)self->group);
+
+}
+
static PyObject *Group_getUsers( BPy_Group * self )
{
GROUP_DEL_CHECK_PY(self);
@@ -306,6 +313,10 @@ static PyGetSetDef BPy_Group_getseters[] = {
(getter)Group_getName, (setter)Group_setName,
"Group name",
NULL},
+ {"lib",
+ (getter)Group_getLib, (setter)NULL,
+ "Group linked library",
+ NULL},
{"users",
(getter)Group_getUsers, (setter)NULL,
"Number of group users",