fix - remap main file as well when checking out

This commit is contained in:
2014-11-04 17:29:49 +01:00
parent 23cb474214
commit 0f9d67c0c0

View File

@@ -142,6 +142,8 @@ def pack(blendfile_src, blendfile_dst, mode='FILE',
for src, dst in path_copy_files:
# TODO. relative to project-basepath
paths_remap[os.path.relpath(dst, base_dir_dst).decode('utf-8')] = src.decode('utf-8')
# main file XXX, should have better way!
paths_remap[os.path.basename(blendfile_src).decode('utf-8')] = blendfile_src.decode('utf-8')
if paths_uuid is not None:
# TODO, multi-process SHA1 calculation (or better cache)