Draft: Fixed bug in SVG projection fill

This commit is contained in:
Yorik van Havre
2020-11-19 13:53:44 +01:00
parent 7349f92472
commit c465fbd799

View File

@@ -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)