Skip to content

Commit

Permalink
Arch: Fixed color of windows transparent parts
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed May 9, 2019
1 parent 8b4d6c0 commit 070e4c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Mod/Arch/ArchWindow.py
Expand Up @@ -1460,7 +1460,8 @@ def colorize(self,obj,force=False):
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):
Expand Down

0 comments on commit 070e4c1

Please sign in to comment.