From 649a767f6aa476664d9a112485e4d546786250ae Mon Sep 17 00:00:00 2001 From: Roy-043 <70520633+Roy-043@users.noreply.github.com> Date: Wed, 20 Jan 2021 19:17:30 +0100 Subject: [PATCH] Update ArchRoof.py A relative profile can now be used if it references itself. This fixes a compatibility issue with the V0.18 version of ArchRoof, where the first profile initially always references itself. --- src/Mod/Arch/ArchRoof.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Mod/Arch/ArchRoof.py b/src/Mod/Arch/ArchRoof.py index cb81df88a5..3a422a513c 100644 --- a/src/Mod/Arch/ArchRoof.py +++ b/src/Mod/Arch/ArchRoof.py @@ -438,8 +438,9 @@ 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: - if 0 <= profilRel["idrel"] < numEdges: + # 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"]: hgt = self.calcHeight(i) profilCurr["height"] = hgt elif ang == 0.0 and run == 0.0: