From 794d6dd7fe1d786a59023e3fbccf75175dd3f39c Mon Sep 17 00:00:00 2001 From: Petru Conduraru Date: Thu, 16 Jul 2026 16:33:32 +0300 Subject: [PATCH] Bonsai: fix mismatched Fillet tooltip in CAD tool for plain mesh edit mode Root cause: in the general edit-mesh branch of CadTool.draw_settings (not a profile, not an AXIS subshape), the "Fillet" hotkey label showed the tooltip of bim.add_ifcarcindex_fillet ("Add a fillet for the selected vertices"), but hotkey_S_F in that same branch actually calls bim.cad_fillet, which requires two selected edges. Selecting vertices per the tooltip then raises "RuntimeError: Exactly 2 edges should be selected." Point the tooltip at bim.cad_fillet's docstring instead, so it matches what shift+F actually executes there (consistent with the AXIS-subshape branch, which already did this correctly). Fixes #7231 Generated with the assistance of an AI coding tool. --- src/bonsai/bonsai/bim/module/cad/workspace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bonsai/bonsai/bim/module/cad/workspace.py b/src/bonsai/bonsai/bim/module/cad/workspace.py index 270c7f70b9..c1378b0913 100644 --- a/src/bonsai/bonsai/bim/module/cad/workspace.py +++ b/src/bonsai/bonsai/bim/module/cad/workspace.py @@ -197,7 +197,7 @@ class CadTool(WorkSpaceTool): ) row = row if ui_context == "TOOL_HEADER" else layout.row(align=True) add_layout_hotkey_operator( - row, "Fillet", "S_F", bpy.ops.bim.add_ifcarcindex_fillet.__doc__.split("\n", 1)[1].strip(), ui_context + row, "Fillet", "S_F", bpy.ops.bim.cad_fillet.__doc__.split("\n", 1)[1].strip(), ui_context ) row = row if ui_context == "TOOL_HEADER" else layout.row(align=True) add_layout_hotkey_operator(