Hardcode context names, since there are unlikely to be many

This commit is contained in:
Dion Moult
2019-09-01 10:27:05 +10:00
parent c2cb11c594
commit 6b53ebdc5e
+1 -1
View File
@@ -85,7 +85,7 @@ class IfcParser():
return class_name in ['IfcBuilding', 'IfcBuildingStorey', 'IfcSite'] # TODO: unhardcode
def is_a_context(self, class_name):
return class_name in ['IfcProject', 'IfcProjectLibrary'] # TODO: unhardcode
return class_name in ['IfcProject', 'IfcProjectLibrary']
class IfcExporter():
def __init__(self, ifc_parser):