mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Fix bug on Linux where INBETWEEN_MOUSEMOVE is fired for measure tool
This commit is contained in:
@@ -351,7 +351,7 @@ class DrawPolylineWall(bpy.types.Operator):
|
||||
def modal(self, context, event):
|
||||
|
||||
if not self.is_input_on:
|
||||
if event.type == "MOUSEMOVE":
|
||||
if event.type == "MOUSEMOVE" or event.type == "INBETWEEN_MOUSEMOVE":
|
||||
self.mousemove_count += 1
|
||||
self.is_input_on = False
|
||||
self.input_type = "OFF"
|
||||
|
||||
@@ -2334,7 +2334,7 @@ class MeasureTool(bpy.types.Operator):
|
||||
def modal(self, context, event):
|
||||
|
||||
if not self.is_input_on:
|
||||
if event.type == "MOUSEMOVE":
|
||||
if event.type == "MOUSEMOVE" or event.type == "INBETWEEN_MOUSEMOVE":
|
||||
self.mousemove_count += 1
|
||||
self.is_input_on = False
|
||||
self.input_type = "OFF"
|
||||
|
||||
Reference in New Issue
Block a user