mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +00:00
Fix indentation for assign Brick reference
This commit is contained in:
@@ -151,12 +151,12 @@ class Brick(blenderbim.core.tool.Brick):
|
|||||||
""".replace("{brick_uri}", brick_uri))
|
""".replace("{brick_uri}", brick_uri))
|
||||||
for row in query:
|
for row in query:
|
||||||
name = row.get("label")
|
name = row.get("label")
|
||||||
if not name:
|
if not name:
|
||||||
name = brick_uri.split("#")[-1]
|
name = brick_uri.split("#")[-1]
|
||||||
if tool.Ifc.get_schema() == "IFC2X3":
|
if tool.Ifc.get_schema() == "IFC2X3":
|
||||||
return {"ItemReference": brick_uri, "Name": name}
|
return {"ItemReference": brick_uri, "Name": name}
|
||||||
else:
|
else:
|
||||||
return {"Identification": brick_uri, "Name": name}
|
return {"Identification": brick_uri, "Name": name}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_active_brick_class(cls, split_screen=False):
|
def get_active_brick_class(cls, split_screen=False):
|
||||||
|
|||||||
Reference in New Issue
Block a user