diff --git a/manim/mobject/svg/svg_mobject.py b/manim/mobject/svg/svg_mobject.py index c296130a27..68653f5517 100644 --- a/manim/mobject/svg/svg_mobject.py +++ b/manim/mobject/svg/svg_mobject.py @@ -373,6 +373,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,