A community-maintained Python framework for creating mathematical animations.
Tiny changes to mobject
Grant Sandersondca03648ad0a
diff --git a/mobject/mobject.py b/mobject/mobject.pyindex 53509d0e9..0f493b197 100644--- a/mobject/mobject.py+++ b/mobject/mobject.py@@ -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 selfdiff --git a/mobject/vectorized_mobject.py b/mobject/vectorized_mobject.pyindex c64851fb3..a3eee4d47 100644--- a/mobject/vectorized_mobject.py+++ b/mobject/vectorized_mobject.py@@ -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: