mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Don't add sound while skipping animations
This commit is contained in:
parent
afbdb94bb3
commit
f54b2ac81a
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue