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.
This commit is contained in:
Germano Cavalcante 2022-04-19 20:00:33 -03:00
parent 16c87dcfb5
commit 1ca9acffc7
Notes: blender-bot 2023-02-14 18:21:35 +01:00
Referenced by issue #97458, Mesh: Snap_Utilities_Line middle mouse button rotate not working like in the knife tool.
1 changed files with 1 additions and 1 deletions

View File

@ -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 *