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:
authorKen Hughes <khughes@pacific.edu>2008-05-01 09:52:35 +0400
committerKen Hughes <khughes@pacific.edu>2008-05-01 09:52:35 +0400
commit3d2758a3bd3e96aed498f27ec169a1817e6cab91 (patch)
treea1a65666e3b8f4996da5b92ea861b7709b9f44f3 /source/blender/python/api2_2x/doc
parentada5f0403ee6f7d0b58b7b3e7fb28568ee17aa81 (diff)
Add support to bpy.library module for relative paths.
Diffstat (limited to 'source/blender/python/api2_2x/doc')
-rw-r--r--source/blender/python/api2_2x/doc/LibData.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/doc/LibData.py b/source/blender/python/api2_2x/doc/LibData.py
index 7b6f4950c76..01f09521cbe 100644
--- a/source/blender/python/api2_2x/doc/LibData.py
+++ b/source/blender/python/api2_2x/doc/LibData.py
@@ -26,13 +26,16 @@ Example::
me.materials[0] = mat # assign linked material to mesh
"""
-def load(filename):
+def load(filename,relative=False):
"""
Select an existing .blend file for use as a library. Unlike the
Library module, multiple libraries can be defined at the same time.
@type filename: string
@param filename: The filename of a Blender file. Filenames starting with "//" will be loaded relative to the blend file's location.
+ @type relative: int
+ @param relative: Convert relative paths to absolute paths (default).
+Setting this parameter to True will leave paths relative.
@rtype: Library
@return: return a L{Library} object.
"""