Skip to content

Commit

Permalink
Merge pull request #4298 from Roy-043/ArchRoof_FixSelfRefRelProfile
Browse files Browse the repository at this point in the history
ArchRoof.py: Fix for self referencing relative profile issue
  • Loading branch information
yorikvanhavre committed Jan 21, 2021
2 parents 135525a + 649a767 commit b0c4e16
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Mod/Arch/ArchRoof.py
Expand Up @@ -438,8 +438,9 @@ def calcMissingData(self, i, numEdges):
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:
Expand Down

0 comments on commit b0c4e16

Please sign in to comment.