diff --git a/src/blenderbim/blenderbim/bim/module/brick/ui.py b/src/blenderbim/blenderbim/bim/module/brick/ui.py index 65f2ec5640..68f2190498 100644 --- a/src/blenderbim/blenderbim/bim/module/brick/ui.py +++ b/src/blenderbim/blenderbim/bim/module/brick/ui.py @@ -235,7 +235,7 @@ class BIM_PT_brickschema_viewport(Panel): op = row.operator("bim.remove_brick_relation", text="", icon="UNLINKED") op.predicate = relation["predicate_uri"] op.object = relation["object_uri"] - if relation["is_uri"] and relation["object_name"] != self.props.active_brick_class: + if relation["is_uri"] and relation["object_uri"].toPython().split("#")[-1] != self.props.active_brick_class: op = row.operator("bim.view_brick_item", text="", icon="DISCLOSURE_TRI_RIGHT") op.item = relation["object_uri"] if relation["is_globalid"]: