mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 09:08:40 +00:00
Polyline tool - move "remove_last_polyline_point" to "handle_inserting_polyline".
This commit is contained in:
@@ -842,6 +842,12 @@ class PolylineOperator:
|
|||||||
PolylineDecorator.update(event, self.tool_state, self.input_ui, self.snapping_points[0])
|
PolylineDecorator.update(event, self.tool_state, self.input_ui, self.snapping_points[0])
|
||||||
tool.Blender.update_viewport()
|
tool.Blender.update_viewport()
|
||||||
|
|
||||||
|
if not self.tool_state.is_input_on:
|
||||||
|
if event.value == "RELEASE" and event.type == "BACK_SPACE":
|
||||||
|
tool.Polyline.remove_last_polyline_point()
|
||||||
|
tool.Blender.update_viewport()
|
||||||
|
|
||||||
|
|
||||||
def handle_snap_selection(self, context: bpy.types.Context, event: bpy.types.Event) -> None:
|
def handle_snap_selection(self, context: bpy.types.Context, event: bpy.types.Event) -> None:
|
||||||
if not self.tool_state.is_input_on and event.value == "PRESS" and event.type == "M":
|
if not self.tool_state.is_input_on and event.value == "PRESS" and event.type == "M":
|
||||||
self.snapping_points = tool.Snap.modify_snapping_point_selection(
|
self.snapping_points = tool.Snap.modify_snapping_point_selection(
|
||||||
@@ -909,10 +915,6 @@ class PolylineOperator:
|
|||||||
tool.Blender.update_viewport()
|
tool.Blender.update_viewport()
|
||||||
return {"RUNNING_MODAL"}
|
return {"RUNNING_MODAL"}
|
||||||
|
|
||||||
if event.value == "RELEASE" and event.type == "BACK_SPACE":
|
|
||||||
tool.Polyline.remove_last_polyline_point()
|
|
||||||
tool.Blender.update_viewport()
|
|
||||||
|
|
||||||
def get_product_preview_data(self, context: bpy.types.Context, relating_type: ifcopenshell.entity_isntance):
|
def get_product_preview_data(self, context: bpy.types.Context, relating_type: ifcopenshell.entity_isntance):
|
||||||
if tool.Model.get_usage_type(relating_type) == "PROFILE":
|
if tool.Model.get_usage_type(relating_type) == "PROFILE":
|
||||||
if relating_type.is_a() in {"IfcColumnType", "IfcPileType"}:
|
if relating_type.is_a() in {"IfcColumnType", "IfcPileType"}:
|
||||||
|
|||||||
Reference in New Issue
Block a user