A community-maintained Python framework for creating mathematical animations.
Fixed bits of funny behavior with skip_animations
Grant Sanderson1d09e5e9607c
diff --git a/scene/scene.py b/scene/scene.pyindex 5d7a08629..bb20e964d 100644--- a/scene/scene.py+++ b/scene/scene.py@@ -53,6 +53,7 @@ class Scene(Container):self.shared_locals = {}self.frame_num = 0self.current_scene_time = 0+ self.original_skipping_status = self.skip_animationsif self.name is None:self.name = self.__class__.__name__if self.include_render_quality_in_name:@@ -424,7 +425,7 @@ class Scene(Container):def handle_animation_skipping(self):if self.start_at_animation_number:if self.num_plays == self.start_at_animation_number:- self.skip_animations = self.original_skipping_status+ self.skip_animations = Falseif self.end_at_animation_number:if self.num_plays >= self.end_at_animation_number:self.skip_animations = True@@ -511,6 +512,8 @@ class Scene(Container):return selfdef add_frames(self, *frames):+ if self.skip_animations:+ returnself.current_scene_time += len(frames)*self.frame_durationif self.write_to_movie:for frame in frames: