Merge pull request #4298 from Roy-043/ArchRoof_FixSelfRefRelProfile
ArchRoof.py: Fix for self referencing relative profile issue
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user