fix otio and refacto
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user