Arch: Enable compression when exporting IFC files (reuse similar vectors, colors, etc)

This commit is contained in:
Yorik van Havre
2018-07-17 14:19:38 -03:00
parent a7c8a4677f
commit d940fd3447
3 changed files with 464 additions and 391 deletions

View File

@@ -142,10 +142,11 @@ class MaterialEditor:
self.getMaterialResources()
self.cards = {}
for p in self.resources:
for f in os.listdir(p):
b, e = os.path.splitext(f)
if e.upper() == ".FCMAT":
self.cards[b] = p + os.sep + f
if os.path.exists(p):
for f in os.listdir(p):
b, e = os.path.splitext(f)
if e.upper() == ".FCMAT":
self.cards[b] = p + os.sep + f
# self.outputCards()
if self.cards:
self.widget.ComboMaterial.clear()