Draft: Fixed error in SVG rendering of LinkedArrays - fixes #6516

This commit is contained in:
Yorik van Havre
2022-03-10 13:34:18 +01:00
parent 2a73ac7cb1
commit dd1b0e0a3d

View File

@@ -753,7 +753,7 @@ def get_svg(obj,
obj.Proxy.getArea(obj, notouch=True)
if hasattr(obj.Proxy, "face"):
# setting fill
if App.GuiUp:
if App.GuiUp and hasattr(vobj,"ShapeColor"):
fill = utils.get_rgb(vobj.ShapeColor,
testbw=False)
fill_opacity = 1 - vobj.Transparency / 100.0
@@ -822,7 +822,7 @@ def get_svg(obj,
vobj = obj.ViewObject
if m != "Wireframe":
if fillstyle == "shape color":
if (fillstyle == "shape color") and hasattr(vobj,"ShapeColor"):
fill = utils.get_rgb(vobj.ShapeColor,
testbw=False)
fill_opacity = 1 - vobj.Transparency / 100.0