mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-29 00:03:17 +00:00
#2049. You can now edit linked project paths when unloaded. Thanks brunoperdigao!
This commit is contained in:
@@ -284,11 +284,12 @@ class BIM_UL_links(UIList):
|
|||||||
def draw_item(self, context, layout, data, item, icon, active_data, active_propname):
|
def draw_item(self, context, layout, data, item, icon, active_data, active_propname):
|
||||||
if item:
|
if item:
|
||||||
row = layout.row(align=True)
|
row = layout.row(align=True)
|
||||||
row.label(text=item.name)
|
|
||||||
if item.is_loaded:
|
if item.is_loaded:
|
||||||
|
row.label(text=item.name)
|
||||||
op = row.operator("bim.unload_link", text="", icon="UNLINKED")
|
op = row.operator("bim.unload_link", text="", icon="UNLINKED")
|
||||||
op.filepath = item.name
|
op.filepath = item.name
|
||||||
else:
|
else:
|
||||||
|
row.prop(item, "name", text="")
|
||||||
op = row.operator("bim.load_link", text="", icon="LINKED")
|
op = row.operator("bim.load_link", text="", icon="LINKED")
|
||||||
op.filepath = item.name
|
op.filepath = item.name
|
||||||
op = row.operator("bim.unlink_ifc", text="", icon="X")
|
op = row.operator("bim.unlink_ifc", text="", icon="X")
|
||||||
|
|||||||
Reference in New Issue
Block a user