From 27732fdf509fbc3a0d449073ea1a243646e926ff Mon Sep 17 00:00:00 2001 From: Paul Lee Date: Sat, 25 Jan 2025 01:15:01 +0800 Subject: [PATCH] [ArchWall] Fix Regression Single-edge Wall w/ Multi-Material Forum Discussion - https://forum.freecad.org/viewtopic.php?t=93610&start=10#p806296 Github Issues - https://github.com/FreeCAD/FreeCAD/issues/19147#issuecomment-2607946858 --- src/Mod/BIM/ArchWall.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Mod/BIM/ArchWall.py b/src/Mod/BIM/ArchWall.py index 14b3319312..c839b3e9ca 100644 --- a/src/Mod/BIM/ArchWall.py +++ b/src/Mod/BIM/ArchWall.py @@ -547,6 +547,8 @@ class _Wall(ArchComponent.Component): for e in self.connectEdges: l += e.Length l = l / 2 + if self.layersNum: + l = l / self.layersNum if obj.Length.Value != l: obj.Length = l self.oldLength = None # delete the stored value to prevent triggering base change below @@ -986,6 +988,9 @@ class _Wall(ArchComponent.Component): if self.basewires: if (len(self.basewires) == 1) and layers: self.basewires = [self.basewires[0] for l in layers] + self.layersNum = len(layers) + else: + self.layersNum = 0 layeroffset = 0 baseface = None self.connectEdges = []