mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 10:33:20 +00:00
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:
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)
|
||||
|
||||
Reference in New Issue
Block a user