mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +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)
|
self.file_writer.write_frame(frame)
|
||||||
|
|
||||||
def add_sound(self, sound_file, time_offset=0, gain=None, **kwargs):
|
def add_sound(self, sound_file, time_offset=0, gain=None, **kwargs):
|
||||||
|
if self.skip_animations:
|
||||||
|
return
|
||||||
time = self.get_time() + time_offset
|
time = self.get_time() + time_offset
|
||||||
self.file_writer.add_sound(sound_file, time, gain, **kwargs)
|
self.file_writer.add_sound(sound_file, time, gain, **kwargs)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue