fix for bpy.path.abspath() on windows when the library argument was set and its self a relative path too.

This commit is contained in:
2011-12-11 19:48:56 +00:00
parent c280002879
commit b22405fa6f

View File

@@ -54,7 +54,7 @@ def abspath(path, start=None, library=None):
"""
if path.startswith("//"):
if library:
start = abspath(_os.path.dirname(library.filepath))
start = _os.path.dirname(abspath(library.filepath))
return _os.path.join(_os.path.dirname(_bpy.data.filepath)
if start is None else start,
path[2:],