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/World.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/World.c')
-rw-r--r--source/blender/python/api2_2x/World.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/World.c b/source/blender/python/api2_2x/World.c
index e4fb48ed20d..6400f3a716e 100644
--- a/source/blender/python/api2_2x/World.c
+++ b/source/blender/python/api2_2x/World.c
@@ -934,6 +934,8 @@ static PyObject *World_GetAttr( BPy_World * self, char *name )
if( strcmp( name, "name" ) == 0 )
return World_getName( self );
+ if( strcmp( name, "lib" ) == 0 )
+ return EXPP_GetIdLib((ID *)self->world);
if( strcmp( name, "skytype" ) == 0 )
return World_getSkytype( self );
if( strcmp( name, "mode" ) == 0 )