From 6479bf12208741ec3717c10a2216d058d885bed1 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Tue, 16 May 2023 12:27:59 +0200 Subject: [PATCH] Arch: Fixed SVG fill - fixes #6208 --- src/Mod/Arch/ArchSectionPlane.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mod/Arch/ArchSectionPlane.py b/src/Mod/Arch/ArchSectionPlane.py index dcfba46845..8653ed80b4 100644 --- a/src/Mod/Arch/ArchSectionPlane.py +++ b/src/Mod/Arch/ArchSectionPlane.py @@ -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