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