mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
Disable LEFTMOUSE when input mode is on, in polyline tool.
This commit is contained in:
@@ -270,7 +270,7 @@ class PolylineOperator:
|
|||||||
tool.Blender.update_viewport()
|
tool.Blender.update_viewport()
|
||||||
|
|
||||||
def handle_inserting_polyline(self, context, event):
|
def handle_inserting_polyline(self, context, event):
|
||||||
if event.value == "RELEASE" and event.type == "LEFTMOUSE":
|
if not self.tool_state.is_input_on and event.value == "RELEASE" and event.type == "LEFTMOUSE":
|
||||||
result = tool.Polyline.insert_polyline_point(self.input_ui, self.tool_state)
|
result = tool.Polyline.insert_polyline_point(self.input_ui, self.tool_state)
|
||||||
if result:
|
if result:
|
||||||
self.report({"WARNING"}, result)
|
self.report({"WARNING"}, result)
|
||||||
|
|||||||
Reference in New Issue
Block a user