mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 10:11:46 +00:00
BBIM fix: prevent "guess_all_quantities" operator from showing up on Property Sets
This commit is contained in:
@@ -88,6 +88,7 @@ def draw_psetqto_ui(context, pset_id, pset, props, layout, obj_type):
|
|||||||
obj_name = get_active_pset_obj_name(context, obj_type)
|
obj_name = get_active_pset_obj_name(context, obj_type)
|
||||||
if not props.active_pset_id:
|
if not props.active_pset_id:
|
||||||
row.label(text=pset["Name"], icon="COPY_ID")
|
row.label(text=pset["Name"], icon="COPY_ID")
|
||||||
|
if "Qto" in pset["Name"]:
|
||||||
op = row.operator("bim.guess_all_quantities", icon="FILE_REFRESH", text="")
|
op = row.operator("bim.guess_all_quantities", icon="FILE_REFRESH", text="")
|
||||||
op.pset_id = pset_id
|
op.pset_id = pset_id
|
||||||
op.obj_name = obj_name
|
op.obj_name = obj_name
|
||||||
|
|||||||
Reference in New Issue
Block a user