A community-maintained Python framework for creating mathematical animations.
Removed super-over-DRY implementation of style propagation in vmobjects
Grant Sanderson1a22b949e1a3
diff --git a/mobject/vectorized_mobject.py b/mobject/vectorized_mobject.pyindex a3ac3372f..0e4cb2375 100644--- a/mobject/vectorized_mobject.py+++ b/mobject/vectorized_mobject.py@@ -54,10 +54,14 @@ class VMobject(Mobject):if fill_opacity is not None:self.fill_opacity = fill_opacityif family:- kwargs = locals()- kwargs.pop("self")for mob in self.submobjects:- mob.set_style_data(**kwargs)+ mob.set_style_data(+ stroke_color = stroke_color,+ stroke_width = stroke_width,+ fill_color = fill_color,+ fill_opacity = fill_opacity,+ family = family+ )return selfdef set_fill(self, color = None, opacity = None, family = True):