Don't add sound while skipping animations

This commit is contained in:
Grant Sanderson 2019-09-10 13:26:30 -07:00
parent afbdb94bb3
commit f54b2ac81a

View file

@ -543,6 +543,8 @@ class Scene(Container):
self.file_writer.write_frame(frame)
def add_sound(self, sound_file, time_offset=0, gain=None, **kwargs):
if self.skip_animations:
return
time = self.get_time() + time_offset
self.file_writer.add_sound(sound_file, time, gain, **kwargs)