fix bug
parent
61f6ec3896
commit
15bd62be2f
|
@ -225,6 +225,8 @@ class VSETB_OT_auto_split(Operator):
|
|||
|
||||
strips = get_strips(channel=self.movie_channel_name)
|
||||
|
||||
i = 1
|
||||
frame_start = self.frame_first
|
||||
for strip in strips:
|
||||
|
||||
if strip.type != 'MOVIE':
|
||||
|
@ -236,8 +238,6 @@ class VSETB_OT_auto_split(Operator):
|
|||
|
||||
process = auto_splitter.launch_split(strip, self.threshold, frame_start=self.frame_first, frame_end=self.frame_last)
|
||||
|
||||
i = 1
|
||||
frame_start = self.frame_first
|
||||
for line in process.stdout:
|
||||
|
||||
# Get frame split from the movie timeline (not from blender strips timeline)
|
||||
|
@ -267,13 +267,13 @@ class VSETB_OT_auto_split(Operator):
|
|||
|
||||
process.wait()
|
||||
|
||||
# Last strip:
|
||||
if frame_start < self.frame_last:
|
||||
create_shot_strip(
|
||||
f'tmp_shot_{str(i).zfill(3)}',
|
||||
start=frame_start,
|
||||
end=self.frame_last
|
||||
)
|
||||
# Last strip:
|
||||
if frame_start < self.frame_last:
|
||||
create_shot_strip(
|
||||
f'tmp_shot_{str(i).zfill(3)}',
|
||||
start=frame_start,
|
||||
end=self.frame_last
|
||||
)
|
||||
|
||||
return {'FINISHED'}
|
||||
|
||||
|
|
Loading…
Reference in New Issue