Skip to content

Commit b83410a

Browse files
Ensure that the stroke_width property of SVGMobject is not set to None. (#4319)
This change fixes issue 4311.
1 parent f124235 commit b83410a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

manim/mobject/svg/svg_mobject.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ def __init__(
125125
self.stroke_color = stroke_color
126126
self.stroke_opacity = stroke_opacity
127127
self.stroke_width = stroke_width
128+
if self.stroke_width is None:
129+
self.stroke_width = 0
128130

129131
if svg_default is None:
130132
svg_default = {

0 commit comments

Comments
 (0)