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.
This commit is contained in:
Petru Conduraru
2026-07-16 16:33:32 +03:00
parent 821cf7b671
commit 794d6dd7fe
@@ -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(