Preliminary end of bayes followup video

This commit is contained in:
Grant Sanderson
2017-06-14 11:32:29 -07:00
parent e2c32af05d
commit 2b0b16131f
6 changed files with 1106 additions and 21 deletions

View File

@ -123,8 +123,12 @@ class TexMobject(SVGMobject):
num_submobs = len(sub_tex_mob.submobjects)
new_index = curr_index + num_submobs
if num_submobs == 0:
if len(self) > curr_index:
last_submob_index = curr_index
else:
last_submob_index = -1
sub_tex_mob.submobjects = [VectorizedPoint(
self.submobjects[curr_index].get_right()
self.submobjects[last_submob_index].get_right()
)]
else:
sub_tex_mob.submobjects = self.submobjects[curr_index:new_index]