Files
IfcOpenShell/src
Petru Conduraru 7e79f9911d Bonsai: clean error instead of a traceback for Extend To Underside (#7454)
Selecting a non-wall pair (e.g. a column and a slab) and pressing Shift+E
surfaced a developer Python traceback. Hotkey.hotkey_S_E's catch-all else
branch unconditionally called bpy.ops.bim.extend_walls_to_underside(); when
the selection contains no path-connectable wall, that nested operator
reports an ERROR and returns CANCELLED, which - invoked via bpy.ops from
inside the outer operator - raises RuntimeError as an unhandled exception,
so the user saw a full traceback.

Guard the selection with the operator's own predicate
(tool.Parametric.is_path_connectable_wall): dispatch to
extend_walls_to_underside only when at least one wall and one other element
are selected, otherwise report a clean end-user error. Mirrors the pattern
already used by hotkey_S_X (align). The valid wall + target path is
unchanged.

This hardens the reported crash. It does not implement extending a column
to a slab underside, which is a separate feature request in the same issue.

Verified live in headless Blender: a column + slab selection produced the
reported traceback before and now yields a single clean error message with
no workspace.py / extend_walls_to_underside frames.

Generated with the assistance of an AI coding tool.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-12 09:55:19 +03:00
..
2026-02-27 14:52:55 +05:00
2026-01-26 17:13:18 +05:00
2026-02-27 14:52:55 +05:00
2025-12-19 18:53:14 +05:00
2025-12-19 18:53:14 +05:00
2025-12-19 18:53:14 +05:00
2025-12-22 18:44:42 +05:00
2025-12-19 18:53:14 +05:00
2025-12-22 18:44:42 +05:00