Fix bug where BIMTester audit classes dropdown wouldn't show.

This commit is contained in:
Dion Moult
2021-02-02 20:46:17 +11:00
parent 5a722a792a
commit 012a2cca0f
@@ -72,7 +72,7 @@ def getIfcClasses(self, context):
global classes_enum
file = IfcStore.get_file()
if len(classes_enum) < 1 and file:
declaration = IfcStore.get_schema().declaration_by_name(self.ifc_product)
declaration = IfcStore.get_schema().declaration_by_name(context.scene.BIMRootProperties.ifc_product)
def get_classes(declaration):
results = []