Add support for image sequence strip

This commit is contained in:
2014-12-18 21:32:03 +01:00
parent 29795e1fbe
commit 54ef179788
3 changed files with 39 additions and 7 deletions

View File

@@ -238,12 +238,17 @@ def pack(
# never copy libs (handled separately)
if not isinstance(fp, blendfile_path_walker.FPElem_block_path) or fp.userdata[0].code != b'LI':
path_copy_files.add((path_src, path_dst))
if fp.is_sequence:
for file_list in (
blendfile_path_walker.utils.find_sequence_paths(path_src) if fp.is_sequence else (),
fp.files_siblings(),
):
_src_dir = os.path.dirname(path_src)
_dst_dir = os.path.dirname(path_dst)
path_copy_files.update(
{(os.path.join(_src_dir, f), os.path.join(_dst_dir, f))
for f in blendfile_path_walker.utils.find_sequence_paths(path_src)
for f in file_list
})
del _src_dir, _dst_dir