A community-maintained Python framework for creating mathematical animations.
Changed default behavior of VMobject.set_fill from setting opacity to 1 if nothing was specified and it started at 0
Grant Sandersonc42148c1955f
diff --git a/mobject/vectorized_mobject.py b/mobject/vectorized_mobject.pyindex 603a28673..f0047dd9f 100644--- a/mobject/vectorized_mobject.py+++ b/mobject/vectorized_mobject.py@@ -65,13 +65,6 @@ class VMobject(Mobject):return selfdef set_fill(self, color = None, opacity = None, family = True):- probably_meant_to_change_opacity = reduce(op.and_, [- color is not None,- opacity is None,- self.fill_opacity == 0- ])- if probably_meant_to_change_opacity:- opacity = 1return self.set_style_data(fill_color = color,fill_opacity = opacity,