Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Small bug fix for starting_animation_number

Grant Sandersoneca8d77f8343
diff --git a/manimlib/scene/scene_file_writer.py b/manimlib/scene/scene_file_writer.py
index f12a75317..e19afc485 100644
--- a/manimlib/scene/scene_file_writer.py
+++ b/manimlib/scene/scene_file_writer.py
@@ -259,9 +259,9 @@ class SceneFileWriter(object):
"extension": self.movie_file_extension,
}
if self.scene.start_at_animation_number is not None:
- kwargs["min_index"] = self.start_at_animation_number
+ kwargs["min_index"] = self.scene.start_at_animation_number
if self.scene.end_at_animation_number is not None:
- kwargs["max_index"] = self.end_at_animation_number
+ kwargs["max_index"] = self.scene.end_at_animation_number
else:
kwargs["remove_indices_greater_than"] = self.scene.num_plays - 1
partial_movie_files = get_sorted_integer_files(