Arch: Fixed color of windows transparent parts

This commit is contained in:
Yorik van Havre
2019-05-09 12:42:25 -03:00
parent 8b4d6c0e64
commit 070e4c1252

View File

@@ -1460,7 +1460,8 @@ class _ViewProviderWindow(ArchComponent.ViewProviderComponent):
if "(" in mat.Material['DiffuseColor']:
ccol = tuple([float(f) for f in mat.Material['DiffuseColor'].strip("()").split(",")])
if ccol and ('Transparency' in mat.Material):
ccol = (ccol[0],ccol[1],ccol[2],float(mat.Material['Transparency']))
t = float(mat.Material['Transparency'])/100.0
ccol = (ccol[0],ccol[1],ccol[2],t)
if not ccol:
typeidx = (i*5)+1
if typeidx < len(obj.WindowParts):