mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Couple scene bug fixes
This commit is contained in:
parent
e45e20b5b0
commit
ff5075ce7d
1 changed files with 4 additions and 3 deletions
|
@ -27,8 +27,8 @@ class Scene(object):
|
||||||
}
|
}
|
||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
digest_config(self, kwargs)
|
digest_config(self, kwargs)
|
||||||
if self.background:
|
if self.background is not None:
|
||||||
self.original_background = np.array(background)
|
self.original_background = np.array(self.background)
|
||||||
#TODO, Error checking?
|
#TODO, Error checking?
|
||||||
else:
|
else:
|
||||||
self.original_background = np.zeros(
|
self.original_background = np.zeros(
|
||||||
|
@ -180,7 +180,8 @@ class Scene(object):
|
||||||
time_progression = ProgressDisplay(times)
|
time_progression = ProgressDisplay(times)
|
||||||
time_progression.set_description(
|
time_progression.set_description(
|
||||||
"Animation %d: "%self.num_animations + \
|
"Animation %d: "%self.num_animations + \
|
||||||
", ".join(map(str, animations))
|
str(animations[0]) + \
|
||||||
|
(", etc." if len(animations) > 1 else "")
|
||||||
)
|
)
|
||||||
for t in time_progression:
|
for t in time_progression:
|
||||||
for animation in animations:
|
for animation in animations:
|
||||||
|
|
Loading…
Add table
Reference in a new issue