mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 20:52:30 +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)
|
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")
|
||||||
op = row.operator("bim.guess_all_quantities", icon="FILE_REFRESH", text="")
|
if "Qto" in pset["Name"]:
|
||||||
op.pset_id = pset_id
|
op = row.operator("bim.guess_all_quantities", icon="FILE_REFRESH", text="")
|
||||||
op.obj_name = obj_name
|
op.pset_id = pset_id
|
||||||
op.obj_type = obj_type
|
op.obj_name = obj_name
|
||||||
|
op.obj_type = obj_type
|
||||||
op = row.operator("bim.enable_pset_editing", icon="GREASEPENCIL", text="")
|
op = row.operator("bim.enable_pset_editing", icon="GREASEPENCIL", text="")
|
||||||
op.pset_id = pset_id
|
op.pset_id = pset_id
|
||||||
op.obj = obj_name
|
op.obj = obj_name
|
||||||
|
|||||||
Reference in New Issue
Block a user