Fix bug on Linux where INBETWEEN_MOUSEMOVE is fired for measure tool

This commit is contained in:
Dion Moult
2024-08-21 21:47:41 +10:00
parent 4e48c35425
commit 35918265d0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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"