From da84165e13bd33d6d135d93ef00ba519a2f761ca Mon Sep 17 00:00:00 2001 From: Sigma Dimensions <79010126+myoualid@users.noreply.github.com> Date: Wed, 29 Mar 2023 01:35:21 +0000 Subject: [PATCH] Enable object selection from Cost item related products' list --- src/blenderbim/blenderbim/bim/module/cost/ui.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/blenderbim/blenderbim/bim/module/cost/ui.py b/src/blenderbim/blenderbim/bim/module/cost/ui.py index 07b8c79580..478005a834 100644 --- a/src/blenderbim/blenderbim/bim/module/cost/ui.py +++ b/src/blenderbim/blenderbim/bim/module/cost/ui.py @@ -633,6 +633,8 @@ class BIM_UL_cost_item_quantities(UIList): if item: row = layout.row(align=True) + op = row.operator("bim.select_product", text="", icon="RESTRICT_SELECT_OFF") + op.product = item.ifc_definition_id row.split(factor=0.8) row.label(text=item.name) row.label(text="{0:.2f}".format(item.total_quantity))