Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions manim/mobject/svg/svg_mobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading