Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Ensure that the stroke_width property of SVGMobject is not set to None. (#4319)

Henrik Skov Midtibyb83410aee02f
diff --git a/manim/mobject/svg/svg_mobject.py b/manim/mobject/svg/svg_mobject.py
index 82c121fce..9a8666c2f 100644
--- a/manim/mobject/svg/svg_mobject.py
+++ b/manim/mobject/svg/svg_mobject.py
@@ -125,6 +125,8 @@ class SVGMobject(VMobject, metaclass=ConvertToOpenGL):
self.stroke_color = stroke_color
self.stroke_opacity = stroke_opacity
self.stroke_width = stroke_width
+ if self.stroke_width is None:
+ self.stroke_width = 0
if svg_default is None:
svg_default = {