Add Extend to Cursor button to active tool panel

- Rename PROFILE panel button from "Extend Height" to "Extend to Cursor"
  with corrected description
- Add "Extend to Cursor" button for basic extrusions (has_extrusion)
  in the else branch of draw_operations
- Add extend_to_cursor icon files (copies of extend icon)

Generated with the assistance of an AI coding tool.
This commit is contained in:
Ryan Schultz
2026-05-28 09:44:59 -05:00
parent 9013dd2c35
commit e9ebba9050
3 changed files with 6 additions and 1 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 308 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 346 B

@@ -893,7 +893,7 @@ class EditObjectUI:
add_layout_hotkey_operator(row, "Extend", "S_E", "", ui_context)
row = cls.layout.row(align=True) if ui_context != "TOOL_HEADER" else row
add_layout_hotkey_operator(
row, "Extend Height", "C_E", "Extend wall height to 3D cursor Z position", ui_context
row, "Extend to Cursor", "C_E", "Extend profile/extrusion to 3D cursor", ui_context
)
row = cls.layout.row(align=True) if ui_context != "TOOL_HEADER" else row
if AuthoringData.data["active_class"] in (
@@ -945,6 +945,11 @@ class EditObjectUI:
add_layout_hotkey_operator(
cls.layout, "Extend To Underside", "S_E", bpy.ops.bim.extend_walls_to_underside.__doc__, ui_context
)
if AuthoringData.data["has_extrusion"]:
row = cls.layout.row(align=True) if ui_context != "TOOL_HEADER" else row
add_layout_hotkey_operator(
row, "Extend to Cursor", "C_E", "Extend extrusion to 3D cursor", ui_context
)
if AuthoringData.data["is_flippable_element"]:
cls.draw_flip(ui_context, row)