Make it so that changing stroke, when there is background stroke, won't default it back to foreground

This commit is contained in:
Grant Sanderson 2020-02-14 16:27:23 -08:00
parent dc8eb317dd
commit aa06a3c111

View file

@ -134,14 +134,15 @@ class VMobject(Mobject):
return self
def set_stroke(self, color=None, width=None, opacity=None,
background=False, family=True):
background=None, family=True):
if family:
for sm in self.submobjects:
sm.set_stroke(color, width, opacity, background, family)
self.update_rgbas_array("stroke_rgbas", color, opacity)
if width is not None:
self.stroke_width = np.array(listify(width))
self.draw_stroke_behind_fill = background
if background is not None:
self.draw_stroke_behind_fill = background
return self
def set_style(self,