This commit is contained in:
Eymeric Chauchat 2026-06-21 14:55:08 +02:00 committed by GitHub
commit 5fb9ac4819
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -373,6 +373,11 @@ class SVGMobject(VMobject, metaclass=ConvertToOpenGL):
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,