mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
bim.add_address - display it in more readable way
Before - https://cdn.imgchest.com/files/4gdcxp5j9l4.png After - https://cdn.imgchest.com/files/yrgcnzgj5n4.png
This commit is contained in:
@@ -54,12 +54,11 @@ def draw_addresses(box: bpy.types.UILayout, parent: dict[str, Any]) -> None:
|
||||
props = tool.Owner.get_owner_props()
|
||||
row = box.row(align=True)
|
||||
row.label(text="Addresses")
|
||||
op = row.operator("bim.add_address", icon="LINK_BLEND", text="")
|
||||
|
||||
assert (wm := bpy.context.window_manager)
|
||||
row.prop(wm.operator_properties_last(bpy.ops.bim.add_address.idname()), "ifc_class", text="")
|
||||
op = row.operator("bim.add_address", icon="ADD", text="")
|
||||
op.parent = parent["id"]
|
||||
op.ifc_class = "IfcTelecomAddress"
|
||||
op = row.operator("bim.add_address", icon="APPEND_BLEND", text="")
|
||||
op.parent = parent["id"]
|
||||
op.ifc_class = "IfcPostalAddress"
|
||||
|
||||
for address in parent["addresses"]:
|
||||
if props.active_address_id == address["id"]:
|
||||
|
||||
Reference in New Issue
Block a user