mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 06:21:40 +00:00
Shift-Q QTO shortcut now works again
This commit is contained in:
@@ -485,7 +485,7 @@ class BimToolUI:
|
|||||||
|
|
||||||
cls.layout.separator()
|
cls.layout.separator()
|
||||||
add_layout_hotkey_operator(
|
add_layout_hotkey_operator(
|
||||||
cls.layout, "Calculate All Quantities", "S_Q", bpy.ops.bim.calculate_all_quantities.__doc__
|
cls.layout, "Perform Quantity Take-off", "S_Q", bpy.ops.bim.perform_quantity_take_off.__doc__
|
||||||
)
|
)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@@ -614,7 +614,7 @@ class Hotkey(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
if not bpy.context.selected_objects:
|
if not bpy.context.selected_objects:
|
||||||
return
|
return
|
||||||
|
|
||||||
bpy.ops.bim.calculate_all_quantities()
|
bpy.ops.bim.perform_quantity_take_off()
|
||||||
|
|
||||||
def hotkey_C_P(self):
|
def hotkey_C_P(self):
|
||||||
if not bpy.context.selected_objects:
|
if not bpy.context.selected_objects:
|
||||||
|
|||||||
@@ -103,8 +103,6 @@ def draw_psetqto_ui(context, pset_id, pset, props, layout, obj_type, allow_remov
|
|||||||
op.obj_type = obj_type
|
op.obj_type = obj_type
|
||||||
elif not props.active_pset_id:
|
elif 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"] and "Base" in pset["Name"]:
|
|
||||||
op = row.operator("bim.calculate_all_quantities", icon="MOD_EDGESPLIT", text="")
|
|
||||||
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