mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 14:38:05 +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):
|
def modal(self, context, event):
|
||||||
|
|
||||||
if not self.is_input_on:
|
if not self.is_input_on:
|
||||||
if event.type == "MOUSEMOVE":
|
if event.type == "MOUSEMOVE" or event.type == "INBETWEEN_MOUSEMOVE":
|
||||||
self.mousemove_count += 1
|
self.mousemove_count += 1
|
||||||
self.is_input_on = False
|
self.is_input_on = False
|
||||||
self.input_type = "OFF"
|
self.input_type = "OFF"
|
||||||
|
|||||||
@@ -2334,7 +2334,7 @@ class MeasureTool(bpy.types.Operator):
|
|||||||
def modal(self, context, event):
|
def modal(self, context, event):
|
||||||
|
|
||||||
if not self.is_input_on:
|
if not self.is_input_on:
|
||||||
if event.type == "MOUSEMOVE":
|
if event.type == "MOUSEMOVE" or event.type == "INBETWEEN_MOUSEMOVE":
|
||||||
self.mousemove_count += 1
|
self.mousemove_count += 1
|
||||||
self.is_input_on = False
|
self.is_input_on = False
|
||||||
self.input_type = "OFF"
|
self.input_type = "OFF"
|
||||||
|
|||||||
Reference in New Issue
Block a user