Pop up add menu in item mode

This commit is contained in:
Dion Moult
2024-09-28 21:22:57 +10:00
parent faa94eb636
commit 5bb40111c1
@@ -847,7 +847,10 @@ class Hotkey(bpy.types.Operator, tool.Ifc.Operator):
row.prop(self, "z")
def hotkey_S_A(self):
bpy.ops.bim.add_constr_type_instance("INVOKE_DEFAULT")
if bpy.context.scene.BIMGeometryProperties.mode == "ITEM":
bpy.ops.wm.call_menu(name="BIM_MT_add_representation_item")
else:
bpy.ops.bim.add_constr_type_instance("INVOKE_DEFAULT")
def hotkey_S_Q(self):
if not bpy.context.selected_objects: