diff --git a/src/blenderbim/blenderbim/bim/module/brick/data.py b/src/blenderbim/blenderbim/bim/module/brick/data.py index 3ee978199e..b8bbdd67f2 100644 --- a/src/blenderbim/blenderbim/bim/module/brick/data.py +++ b/src/blenderbim/blenderbim/bim/module/brick/data.py @@ -41,7 +41,7 @@ class BrickschemaData: cls.is_loaded = True cls.data = { "is_loaded": cls.get_is_loaded(), - "attributes": cls.attributes(), + "relations": cls.relations(), } @classmethod @@ -49,7 +49,7 @@ class BrickschemaData: return BrickStore.graph is not None @classmethod - def attributes(cls): + def relations(cls): if BrickStore.graph is None: return [] props = bpy.context.scene.BIMBrickProperties diff --git a/src/blenderbim/blenderbim/bim/module/brick/ui.py b/src/blenderbim/blenderbim/bim/module/brick/ui.py index 56d4f830d3..a7759b4ecf 100644 --- a/src/blenderbim/blenderbim/bim/module/brick/ui.py +++ b/src/blenderbim/blenderbim/bim/module/brick/ui.py @@ -107,16 +107,16 @@ class BIM_PT_brickschema(Panel): self.layout.template_list("BIM_UL_bricks", "", self.props, "bricks", self.props, "active_brick_index") - for attribute in BrickschemaData.data["attributes"]: + for relation in BrickschemaData.data["relations"]: row = self.layout.row(align=True) - row.label(text=attribute["predicate"]) - row.label(text=attribute["object"]) - if attribute["is_uri"]: + row.label(text=relation["predicate"]) + row.label(text=relation["object"]) + if relation["is_uri"]: op = row.operator("bim.view_brick_item", text="", icon="DISCLOSURE_TRI_RIGHT") - op.item = attribute["object_uri"] - if attribute["is_globalid"]: + op.item = relation["object_uri"] + if relation["is_globalid"]: op = row.operator("bim.select_global_id", icon="RESTRICT_SELECT_OFF", text="") - op.global_id = attribute["object"] + op.global_id = relation["object"] class BIM_PT_ifc_brickschema_references(Panel): diff --git a/src/blenderbim/blenderbim/tool/brick.py b/src/blenderbim/blenderbim/tool/brick.py index 14ff636ec6..392a673c9a 100644 --- a/src/blenderbim/blenderbim/tool/brick.py +++ b/src/blenderbim/blenderbim/tool/brick.py @@ -375,7 +375,6 @@ class BrickStore: @classmethod def load_entity_classes(cls): - for root_class in BrickStore.root_classes: query = BrickStore.graph.query( """