From fbe7178cdbad020d7be3f9d190d8faf699c3652e Mon Sep 17 00:00:00 2001 From: Roy-043 <70520633+Roy-043@users.noreply.github.com> Date: Wed, 17 Feb 2021 21:35:51 +0100 Subject: [PATCH] [Arch] ArchRoof: Improved compatibility fix The check if a relative profile in turn references a relative profile has been improved. Added: run or angle of profilRel must be zero. --- src/Mod/Arch/ArchRoof.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Mod/Arch/ArchRoof.py b/src/Mod/Arch/ArchRoof.py index ec641320ad..99130d0e43 100644 --- a/src/Mod/Arch/ArchRoof.py +++ b/src/Mod/Arch/ArchRoof.py @@ -438,9 +438,10 @@ class _Roof(ArchComponent.Component): rel = profilCurr["idrel"] if i != rel and 0 <= rel < numEdges: profilRel = self.profilsDico[rel] - # do not use data from the relative profile if it in turn references a relative profile - # other than itself: - if 0 <= profilRel["idrel"] < numEdges and rel != profilRel["idrel"]: + # do not use data from the relative profile if it in turn references a relative profile: + if (0 <= profilRel["idrel"] < numEdges # idrel of profilRel points to a profile + and rel != profilRel["idrel"] # profilRel does not reference itself + and (profilRel["angle"] == 0.0 or profilRel["run"] == 0.0)): # run or angle of profilRel is zero hgt = self.calcHeight(i) profilCurr["height"] = hgt elif ang == 0.0 and run == 0.0: