fix otio and refacto

This commit is contained in:
“christopheseux”
2023-05-04 11:32:36 +02:00
parent f9384c3d89
commit 706fcb2ee1
4 changed files with 25 additions and 17 deletions
+6 -2
View File
@@ -170,12 +170,16 @@ class VSETB_OT_import_files(Operator):
import_movie(movie_filepath)
if self.import_sound or (not self.import_sound and self.import_movie):
print(f'[>.] Loading Audio from: {str(sound_filepath)}')
for strip in get_strips(channel='Audio'):
sequencer.remove(strip)
import_sound(sound_filepath)
if self.import_sound:
print(f'[>.] Loading Audio from: {str(sound_filepath)}')
import_sound(sound_filepath)
else:
print(f'[>.] Loading Audio from: {str(movie_filepath)}')
import_sound(movie_filepath)
context.scene.sequence_editor.sequences.update()