Arch: import IFC, fix merge material preference import

This commit is contained in:
Bernd Hahnebach
2021-10-26 11:24:12 +02:00
committed by GitHub
parent 4e246ada88
commit cf64ff763e

View File

@@ -1277,7 +1277,7 @@ def insert(srcfile, docname, skip=[], only=[], root=None, preferences=None):
add_material = True
if preferences['MERGE_MATERIALS']:
for key in list(fcmats.keys()):
if key.startswith(name) \
if fcmats[key].Label == name \
and "DiffuseColor" in mdict and "DiffuseColor" in fcmats[key].Material \
and mdict["DiffuseColor"] == fcmats[key].Material["DiffuseColor"]:
mat = fcmats[key]