diff --git a/manim/mobject/svg/svg_mobject.py b/manim/mobject/svg/svg_mobject.py index bd494c0211..da37486ce4 100644 --- a/manim/mobject/svg/svg_mobject.py +++ b/manim/mobject/svg/svg_mobject.py @@ -327,6 +327,11 @@ def apply_style_to_mobject(mob: VMobject, shape: se.GraphicObject) -> VMobject: shape The parsed SVG element. """ + if shape.stroke.hexrgb is not None and ( + shape.stroke_width is None or shape.stroke_width == 0.0 + ): + shape.stroke_width = 1.0 + mob.set_style( stroke_width=shape.stroke_width, stroke_color=shape.stroke.hexrgb,