From c465fbd79927106b3c9db9476a1c72dba26beca3 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Thu, 19 Nov 2020 13:53:44 +0100 Subject: [PATCH] Draft: Fixed bug in SVG projection fill --- src/Mod/Draft/draftfunctions/svg.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Mod/Draft/draftfunctions/svg.py b/src/Mod/Draft/draftfunctions/svg.py index 90f9fdb037..e8f68fd604 100644 --- a/src/Mod/Draft/draftfunctions/svg.py +++ b/src/Mod/Draft/draftfunctions/svg.py @@ -220,6 +220,8 @@ def _svg_shape(svg, obj, plane, fill = fillstyle elif fillstyle == "shape color": fill = "#888888" + elif fillstyle in ("none",None): + fill = "none" else: fill = 'url(#' + fillstyle + ')' @@ -841,6 +843,8 @@ def get_svg(obj, fill = utils.get_rgb(vobj.ShapeColor, testbw=False) fill_opacity = 1 - vobj.Transparency / 100.0 + elif fillstyle in ("none",None): + fill = "none" else: fill = 'url(#'+fillstyle+')' svg += get_pattern(fillstyle)