Arch: ifc import, typo in var name

This commit is contained in:
Bernd Hahnebach
2020-10-06 10:53:56 +02:00
committed by GitHub
parent ceccc212b8
commit d45e143f17

View File

@@ -1299,8 +1299,8 @@ def insert(srcfile, docname, skip=[], only=[], root=None, preferences=None):
dig = 5
ma_color = sh_color = round(col[0], dig), round(col[1], dig), round(col[2], dig)
if "DiffuseColor" in objects[o].Material.Material:
sting_col_ = objects[o].Material.Material["DiffuseColor"]
col = tuple([float(f) for f in sting_col_.strip("()").split(",")])
string_color = objects[o].Material.Material["DiffuseColor"]
col = tuple([float(f) for f in string_color.strip("()").split(",")])
ma_color = round(col[0], dig), round(col[1], dig), round(col[2], dig)
if ma_color != sh_color:
print("\nobject color != material color for object: ", o)