#2049. You can now edit linked project paths when unloaded. Thanks brunoperdigao!

This commit is contained in:
Dion Moult
2022-03-16 10:46:29 +11:00
parent b5a58998d5
commit 3713ec00f9
@@ -284,11 +284,12 @@ class BIM_UL_links(UIList):
def draw_item(self, context, layout, data, item, icon, active_data, active_propname):
if item:
row = layout.row(align=True)
row.label(text=item.name)
if item.is_loaded:
row.label(text=item.name)
op = row.operator("bim.unload_link", text="", icon="UNLINKED")
op.filepath = item.name
else:
row.prop(item, "name", text="")
op = row.operator("bim.load_link", text="", icon="LINKED")
op.filepath = item.name
op = row.operator("bim.unlink_ifc", text="", icon="X")