mirror of
https://github.com/jeertmans/manim-slides.git
synced 2025-05-19 03:26:17 +08:00
chore(lib): raise error if skipping
Temporary error before implementing this
This commit is contained in:
@ -263,6 +263,12 @@ class Slide(Scene): # type:ignore
|
|||||||
ascii=True if platform.system() == "Windows" else None,
|
ascii=True if platform.system() == "Windows" else None,
|
||||||
disable=not self.show_progress_bar,
|
disable=not self.show_progress_bar,
|
||||||
):
|
):
|
||||||
|
if src_file is None:
|
||||||
|
# This happens if rendering with -na,b
|
||||||
|
# where animations not in [a,b] will be skipped
|
||||||
|
# but animations before a will have a None src_file
|
||||||
|
raise ValueError("Skipping animation is currently not supported for Manim Slides")
|
||||||
|
|
||||||
filename = os.path.basename(src_file)
|
filename = os.path.basename(src_file)
|
||||||
rev_filename = "{}_reversed{}".format(*os.path.splitext(filename))
|
rev_filename = "{}_reversed{}".format(*os.path.splitext(filename))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user