Minor comments reworded/added

This commit is contained in:
Sridhar Ramesh
2018-02-02 10:13:22 -08:00
parent 4038fdacbb
commit 5ea41c00ee
2 changed files with 5 additions and 2 deletions

View File

@ -439,10 +439,10 @@ class Succession(Animation):
Animation.__init__(self, self.mobject, run_time = run_time, **kwargs)
# Beware: This does NOT take care of updating the subanimation to 0
# Beware: This does NOT take care of calling update(0) on the subanimation.
# This was important to avoid a pernicious possibility in which subanimations were called
# with update(0) twice, which could in turn call a sub-Succession with update(0) four times,
# continuing exponentially
# continuing exponentially.
def jump_to_start_of_anim(self, index):
if index != self.current_anim_index:
self.mobject.remove(*self.mobject.submobjects) # Should probably have a cleaner "remove_all" method...

View File

@ -152,6 +152,9 @@ class Camera(object):
)
mobjects = list_difference_update(mobjects, all_excluded)
# Should perhaps think about what happens here when include_submobjects is False,
# (for now, the onus is then on the caller to ensure this is handled correctly by
# passing us an appropriately pre-flattened list of mobjects if need be)
return sorted(mobjects, lambda a, b: cmp(z_buff_func(a), z_buff_func(b)))
def capture_mobject(self, mobject, **kwargs):