Fix indentation for assign Brick reference

This commit is contained in:
rileywong311
2023-08-22 16:01:33 -07:00
committed by Riley Wong
parent 695dc6ec5a
commit 5b207e6f54
+6 -6
View File
@@ -151,12 +151,12 @@ class Brick(blenderbim.core.tool.Brick):
""".replace("{brick_uri}", brick_uri))
for row in query:
name = row.get("label")
if not name:
name = brick_uri.split("#")[-1]
if tool.Ifc.get_schema() == "IFC2X3":
return {"ItemReference": brick_uri, "Name": name}
else:
return {"Identification": brick_uri, "Name": name}
if not name:
name = brick_uri.split("#")[-1]
if tool.Ifc.get_schema() == "IFC2X3":
return {"ItemReference": brick_uri, "Name": name}
else:
return {"Identification": brick_uri, "Name": name}
@classmethod
def get_active_brick_class(cls, split_screen=False):