From 546f8d6fe712bf09833c45841fe3d2c886c7931d Mon Sep 17 00:00:00 2001 From: Trashman247 Date: Wed, 19 Jul 2023 21:19:11 -0700 Subject: [PATCH] Ignore populate Brick attributes if active entity is a brick entity --- src/blenderbim/blenderbim/bim/module/brick/data.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/blenderbim/blenderbim/bim/module/brick/data.py b/src/blenderbim/blenderbim/bim/module/brick/data.py index af50237178..3ee978199e 100644 --- a/src/blenderbim/blenderbim/bim/module/brick/data.py +++ b/src/blenderbim/blenderbim/bim/module/brick/data.py @@ -57,8 +57,11 @@ class BrickschemaData: brick = props.bricks[props.active_brick_index] except: return [] - results = [] uri = brick.uri + namespace = str(uri.split("#")[0]) + if namespace == "https://brickschema.org/schema/Brick": + return [] + results = [] query = BrickStore.graph.query( """ PREFIX brick: