mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Renamed files_to_clean as now its dictionary
This commit is contained in:
parent
bc2f6335e0
commit
d076f152fd
1 changed files with 4 additions and 4 deletions
|
|
@ -416,14 +416,14 @@ class ExtractReview(pyblish.api.InstancePlugin):
|
|||
|
||||
collection = collections[0]
|
||||
if fill_type == "existing":
|
||||
files_to_clean = self.fill_sequence_gaps_from_existing(
|
||||
added_frames_and_files = self.fill_sequence_gaps_from_existing(
|
||||
collection=collection,
|
||||
staging_dir=new_repre["stagingDir"],
|
||||
start_frame=temp_data["frame_start"],
|
||||
end_frame=temp_data["frame_end"],
|
||||
)
|
||||
elif fill_type == "blank":
|
||||
files_to_clean = self.fill_sequence_gaps_with_blanks(
|
||||
added_frames_and_files = self.fill_sequence_gaps_with_blanks(
|
||||
collection=collection,
|
||||
staging_dir=new_repre["stagingDir"],
|
||||
resolution_width=temp_data["resolution_width"],
|
||||
|
|
@ -487,8 +487,8 @@ class ExtractReview(pyblish.api.InstancePlugin):
|
|||
run_subprocess(subprcs_cmd, shell=True, logger=self.log)
|
||||
|
||||
# delete files added to fill gaps
|
||||
if files_to_clean:
|
||||
for f in files_to_clean:
|
||||
if added_frames_and_files:
|
||||
for f in added_frames_and_files.values():
|
||||
os.unlink(f)
|
||||
|
||||
new_repre.update({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue