Tiny changes to mobject

This commit is contained in:
Grant Sanderson
2018-02-07 16:21:11 -08:00
parent 81b8aff7bd
commit dca03648ad
2 changed files with 6 additions and 5 deletions

View File

@ -770,10 +770,10 @@ class Mobject(Container):
self.null_point_align(mobject)
self_count = len(self.submobjects)
mob_count = len(mobject.submobjects)
diff = abs(self_count-mob_count)
if self_count < mob_count:
self.add_n_more_submobjects(diff)
elif mob_count < self_count:
diff = self_count-mob_count
if diff < 0:
self.add_n_more_submobjects(-diff)
elif diff > 0:
mobject.add_n_more_submobjects(diff)
return self

View File

@ -42,7 +42,8 @@ class VMobject(Mobject):
stroke_width = None,
fill_color = None,
fill_opacity = None,
family = True):
family = True
):
if stroke_color is not None:
self.stroke_rgb = color_to_rgb(stroke_color)
if fill_color is not None: