mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Removed super-over-DRY implementation of style propagation in vmobjects
This commit is contained in:
parent
5639f2e6c3
commit
1a22b949e1
1 changed files with 7 additions and 3 deletions
|
@ -54,10 +54,14 @@ class VMobject(Mobject):
|
||||||
if fill_opacity is not None:
|
if fill_opacity is not None:
|
||||||
self.fill_opacity = fill_opacity
|
self.fill_opacity = fill_opacity
|
||||||
if family:
|
if family:
|
||||||
kwargs = locals()
|
|
||||||
kwargs.pop("self")
|
|
||||||
for mob in self.submobjects:
|
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 self
|
return self
|
||||||
|
|
||||||
def set_fill(self, color = None, opacity = None, family = True):
|
def set_fill(self, color = None, opacity = None, family = True):
|
||||||
|
|
Loading…
Add table
Reference in a new issue