Arch: Fixed SVG fill - fixes #6208

This commit is contained in:
Yorik van Havre
2023-05-16 12:27:59 +02:00
parent 2eb7badb1e
commit 22226b31c1

View File

@@ -223,6 +223,8 @@ def getFillForObject(o, defaultFill, source):
return material.SectionColor
elif hasattr(material, 'Color') and material.Color:
return material.Color
elif hasattr(o,"ViewObject") and hasattr(o.ViewObject,"ShapeColor"):
return o.ViewObject.ShapeColor
return defaultFill
@@ -368,7 +370,7 @@ def getSVG(source,
# reading cached version
svgcache = update_svg_cache(source, renderMode, showHidden, showFill, fillSpaces, joinArch, allOn, objs)
should_update_svg_cache = False
if not svgcache:
if showFill or not svgcache:
should_update_svg_cache = True
# generating SVG