Skip to content

Commit

Permalink
Fixed a Long-Lived Bug in
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswmackey committed Feb 16, 2017
1 parent 23f52be commit 0621e54
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Honeybee_Honeybee.py
Expand Up @@ -47,7 +47,7 @@

ghenv.Component.Name = "Honeybee_Honeybee"
ghenv.Component.NickName = 'Honeybee'
ghenv.Component.Message = 'VER 0.0.61\nFEB_05_2017'
ghenv.Component.Message = 'VER 0.0.61\nFEB_16_2017'
ghenv.Component.IconDisplayMode = ghenv.Component.IconDisplayMode.icon
ghenv.Component.Category = "Honeybee"
ghenv.Component.SubCategory = "00 | Honeybee"
Expand Down Expand Up @@ -1690,9 +1690,10 @@ def writeRADAndMaterialFiles(self, originalHBObjects, subWorkingDir, radFileName
if srf.hasChild:
# collect the custom material informations
for childSrf in srf.childSrfs:

if childSrf.RadMaterial!=None:
customRADMat, customMixFunRadMat = self.hb_RADMaterialAUX.addRADMatToDocumentDict(childSrf, customRADMat, customMixFunRadMat)

if not srf.isPlanar or len(srf.childSrfs) > 1:
geoRadFile.write(self.RADNonPlanarChildSurface(srf))

Expand Down Expand Up @@ -2396,6 +2397,7 @@ def shiftList(self, list, number = 1):
def getsurfaceStr(self, surface, count, coordinates):
if surface.RadMaterial != None:
surface.construction = surface.RadMaterial

elif not hasattr(surface, 'construction'):

if not hasattr(surface, 'type'):
Expand Down Expand Up @@ -2439,7 +2441,7 @@ def RADSurface(self, surface):
glzCoordinateLists = surface.extractGlzPoints(True)
for glzCount, glzCoorList in enumerate(glzCoordinateLists):
# glazingStr
fullStr = fullStr + self.getsurfaceStr(surface.childSrfs[0], glzCount, glzCoorList)
fullStr = fullStr + self.getsurfaceStr(surface.childSrfs[glzCount], glzCount, glzCoorList)

# shift glazing list
glzCoorList = self.shiftList(glzCoorList)
Expand Down Expand Up @@ -2491,7 +2493,7 @@ def RADNonPlanarChildSurface(self, surface):
coordinatesList = [coordinatesList]
for glzCount, glzCoorList in enumerate(coordinatesList):
# glazingStr
fullStr = fullStr + self.getsurfaceStr(surface.childSrfs[0], glzCount, glzCoorList)
fullStr = fullStr + self.getsurfaceStr(surface.childSrfs[glzCount], glzCount, glzCoorList)
return fullStr

class hb_WriteRADAUX(object):
Expand Down
Binary file modified userObjects/Honeybee_Honeybee.ghuser
Binary file not shown.

0 comments on commit 0621e54

Please sign in to comment.