mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-16 18:44:47 +00:00
Left mouse to cancel input mode in polyline tool
Previously it would just have no effect, now it should be more natural.
This commit is contained in:
@@ -317,7 +317,7 @@ class PolylineOperator:
|
||||
self, context: bpy.types.Context, event: bpy.types.Event
|
||||
) -> Union[None, set[Literal["CANCELLED"]]]:
|
||||
if self.tool_state.is_input_on:
|
||||
if event.value == "RELEASE" and event.type in {"ESC"}:
|
||||
if event.value == "RELEASE" and event.type in {"ESC", "LEFTMOUSE"}:
|
||||
self.recalculate_inputs(context)
|
||||
self.tool_state.mode = "Mouse"
|
||||
self.tool_state.is_input_on = False
|
||||
|
||||
Reference in New Issue
Block a user