forked from bartvdbraak/blender
fix for bpy.path.abspath(), if a path was passed it would get the last directory cut off, broke copying images on export.
This commit is contained in:
parent
d8e216833a
commit
f4b6d00926
@ -35,7 +35,7 @@ def abspath(path, start=None):
|
||||
:type start: string
|
||||
"""
|
||||
if path.startswith("//"):
|
||||
return _os.path.join(_os.path.dirname(_bpy.data.filepath if start is None else start), path[2:])
|
||||
return _os.path.join(_os.path.dirname(_bpy.data.filepath) if start is None else start, path[2:])
|
||||
|
||||
return path
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user