Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGermano Cavalcante <germano.costa@ig.com.br>2022-04-20 02:00:33 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2022-04-20 02:00:33 +0300
commit1ca9acffc7e75fdf43ad9fa990229903741f22e0 (patch)
treea87313663669b82a7aef31bda43b691aaed1a139
parent16c87dcfb5a79d64abae31c5a8371d87c0ae6321 (diff)
Fix T97458: Snap_Utilities_Line rotate navigation not working
Some recent change in the event system cause the `event.value` to be `'NOTHING'` when `event.type` is `'MOUSEMOVE'`. Checking the `event.value` is not really necessary here.
-rw-r--r--mesh_snap_utilities_line/navigation_ops.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesh_snap_utilities_line/navigation_ops.py b/mesh_snap_utilities_line/navigation_ops.py
index d38eb786..eda0517a 100644
--- a/mesh_snap_utilities_line/navigation_ops.py
+++ b/mesh_snap_utilities_line/navigation_ops.py
@@ -17,7 +17,7 @@ class VIEW3D_OT_rotate_custom_pivot(bpy.types.Operator):
def modal(self, context, event):
from mathutils import Matrix
- if event.value == 'PRESS' and event.type in {'MOUSEMOVE', 'INBETWEEN_MOUSEMOVE'}:
+ if event.type in {'MOUSEMOVE', 'INBETWEEN_MOUSEMOVE'}:
dx = self.init_coord[0] - event.mouse_region_x
dy = self.init_coord[1] - event.mouse_region_y
rot_ver = Matrix.Rotation(-dx *