mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 07:09:22 +00:00
Fix error when creating a drawing of a file with material set usages
This commit is contained in:
@@ -786,9 +786,10 @@ class IfcCutter:
|
|||||||
return classes
|
return classes
|
||||||
|
|
||||||
def get_material_name(self, element):
|
def get_material_name(self, element):
|
||||||
|
# TODO: only simple materials are handled currently, not sets or usages
|
||||||
if hasattr(element, "Name") and element.Name:
|
if hasattr(element, "Name") and element.Name:
|
||||||
return element.Name
|
return element.Name
|
||||||
return element.id()
|
return "mat-" + str(element.id())
|
||||||
|
|
||||||
def get_pickled_cut_polygons(self):
|
def get_pickled_cut_polygons(self):
|
||||||
if os.path.isfile(self.cut_pickle_file):
|
if os.path.isfile(self.cut_pickle_file):
|
||||||
|
|||||||
Reference in New Issue
Block a user