Add support for image sequence strip
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user